From e67516a3f6805a274a2b6a2acdf05a2727dee4f4 Mon Sep 17 00:00:00 2001 From: Hayley Pelham Date: Fri, 5 Mar 2021 00:08:53 +0000 Subject: [PATCH] Bug 27610: (follow-up) Hide

on opac-main.tt This patch visually hides the

on opac-main.tt so that libraries' customisations of their home pages are not disturbed by the introduction of a descriptive

, but the heading is still available to be read out by screenreaders in the summary of headings on the page. Test plan: 1) Apply dependencies and all patches on this bug report 2) Observe a new heading level 1 'Home' on the OPAC main page 2) Apply this patch 3) Observe the heading is hidden visually, but in the source code you can see it is in the correct hierarchy and it is more descriptive 'Koha home' Sponsored-by: Catalyst IT --- koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 5 +++++ koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index 8f411ae789..5b4a1e5da7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -2596,4 +2596,9 @@ $star-selected: #EDB867; } } +/* Hidden headings for accessibility */ +.opac-hidden-heading { + display: none; +} + @import "responsive"; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt index 3f059a2fee..de000b2b82 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -66,7 +66,7 @@
[% END %] -

Home

+

Koha home

[% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %] [% UNLESS news_item %] -- 2.11.0