From 14f1ed25ce873d8a5276196ad13995a588d47abb Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Thu, 8 Oct 2020 22:18:10 +0200 Subject: [PATCH] improve accessibility, label all inputs --- index.css | 12 ++++++++---- index.html | 11 ++++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/index.css b/index.css index e080f6e..78e80ac 100644 --- a/index.css +++ b/index.css @@ -36,6 +36,14 @@ a:active { text-decoration: none; color: inherit; } +.screenreader-only { + width: 1px; + height: 1px; + position: absolute; + top: -999px; + left: -999px; + overflow:hidden +} .no-smooth { -webkit-font-smoothing: none; } @@ -313,10 +321,6 @@ form { label + .nav-button { margin-left: .5ex; } -label[for='select-language'], -label[for='select-theme'] { - display: none; -} .CodeMirror { height: 100%; min-height: 100%; diff --git a/index.html b/index.html index f08ccb7..c2438ee 100755 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + Programming Fonts - Test Drive @@ -193,7 +193,7 @@

- +

- +