Skip to contentSkip to conversation

add missing <h2> tag

PATCH In review Paolo Bonzini 2 participants 2 messages Feb 14, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add missing <h2> tag

The homepage goes straight from h1 to h3, add the missing tag for use in screen readers.

---
 assets/css/style.css | 12 ++++++++++++
 index.html           |  3 +++
 2 files changed, 15 insertions(+)
assets/css/style.css +12 -0
index 779b111..2705787 100644
@@ -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;
index.html +3 -0
index d72750c..676c379 100644
@@ -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">
Signature · 1 line
2.39.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 36 lines · Paolo Bonzini

The homepage goes straight from h1 to h3, add the missing tag for use in screen readers.

---
  assets/css/style.css | 12 ++++++++++++
  index.html           |  3 +++
  2 files changed, 15 insertions(+)
assets/css/style.css +12 -0
index 779b111..2705787 100644
@@ -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;
index.html +0 -0
index d72750c..676c379 100644

index.html colorbox: True · line 22

Quoted 9 lines
index.html +3 -0
@@ -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">