From 0526373be43dba5fd61fb8dc8eaf369f7d6cc661 Mon Sep 17 00:00:00 2001 From: WofWca Date: Sun, 7 Sep 2025 09:25:33 +0400 Subject: [PATCH] fix: a11y: fix tabs See https://www.w3.org/WAI/ARIA/apg/patterns/tabs/. Follow-up to https://github.com/webxdc/webxdc-test/pull/39. --- index.html | 57 +++++++++++++++++++++++++++++++++++++++++++++--------- styles.css | 6 +++++- 2 files changed, 53 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 002ecf2..cba2242 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,12 @@
-
+
@@ -50,7 +55,12 @@
-
+
@@ -67,7 +77,12 @@
-
+
@@ -158,10 +173,34 @@

DNS Prefetch

-
-
Webxdc
-
Web API
-
Sandboxing
+
+ + +
diff --git a/styles.css b/styles.css index d5db5f9..d29d102 100644 --- a/styles.css +++ b/styles.css @@ -82,11 +82,15 @@ body { .tab { flex-grow: 1; height: 36px; + padding: 0; + border: none; + margin: 0; + background-color: transparent; font-size: 1.3em; text-align: center; align-content: center; } -.tab.active { +.tab[aria-selected="true"] { background-color: lightgrey; } \ No newline at end of file