qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qemu-web PATCH] add missing <h2> tag


From: Thomas Huth
Subject: Re: [qemu-web PATCH] add missing <h2> tag
Date: Tue, 14 Feb 2023 13:29:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0

On 14/02/2023 13.24, Paolo Bonzini wrote:
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">

Reviewed-by: Thomas Huth <thuth@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]