From 1d9fac3a575623c79c1f56c771360b049888447b Mon Sep 17 00:00:00 2001 From: sem pruijs <19208988+sempruijs@users.noreply.github.com> Date: Fri, 6 Jan 2023 16:43:26 +0100 Subject: [PATCH] Improve accessibility for screenreader users (#593) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Naïm Favier --- frontend/src/Search.elm | 2 +- frontend/src/index.scss | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/Search.elm b/frontend/src/Search.elm index 7038a13..8d05fb9 100644 --- a/frontend/src/Search.elm +++ b/frontend/src/Search.elm @@ -1056,7 +1056,7 @@ viewResults nixosChannels model result viewSuccess _ outMsg categoryName = in [ div [] [ Html.map outMsg <| viewSortSelection model - , div [] + , h2 [] (List.append [ text "Showing results " , text from diff --git a/frontend/src/index.scss b/frontend/src/index.scss index 23e1d75..7580235 100644 --- a/frontend/src/index.scss +++ b/frontend/src/index.scss @@ -320,8 +320,9 @@ header .navbar.navbar-static-top { } // Text that displays number of results - & > div:nth-child(2) { + & > h2:nth-child(2) { font-size: 1.7em; + font-weight: normal; line-height: 1.3em; & > p {