[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-web PATCH] add missing <h2> tag
From: |
Paolo Bonzini |
Subject: |
[qemu-web PATCH] add missing <h2> tag |
Date: |
Tue, 14 Feb 2023 13:24:53 +0100 |
The homepage goes straight from h1 to h3, add the missing tag for use in screen
readers.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
assets/css/style.css | 12 ++++++++++++
index.html | 3 +++
2 files changed, 15 insertions(+)
diff --git a/assets/css/style.css b/assets/css/style.css
index 779b111..2705787 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -44,6 +44,18 @@
color: #802400;
}
+ .visuallyhidden
+ {
+ border: 0;
+ clip: rect(0 0 0 0);
+ height: 1px;
+ margin: -1px;
+ overflow: hidden;
+ padding: 0;
+ position: absolute;
+ width: 1px;
+ }
+
pre,code,samp,tt
{
font-family: 'Roboto Mono', monospace;
diff --git a/index.html b/index.html
index d72750c..676c379 100644
--- a/index.html
+++ b/index.html
@@ -14,6 +14,9 @@ colorbox: True
<!-- Featured -->
<div id="featured">
+ <header class="visuallyhidden">
+ <h2>Features</h2>
+ </header>
<div class="container">
<div class="row">
<section class="4u">
--
2.39.1
- [qemu-web PATCH] add missing <h2> tag,
Paolo Bonzini <=