Bug 28469: Move "Skip to main content" to top of OPAC page
authorDavid Cook <dcook@prosentient.com.au>
Thu, 27 May 2021 03:34:30 +0000 (03:34 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 30 Jul 2021 15:06:33 +0000 (11:06 -0400)
commit97e81df59ecfcd1509863381dafdf7c114fe1b7b
tree7bdd47c1343bce1df592c729db6e86600c17dbec
parent4d61829eb82cf7f10217ed2a461cc67ad2f48847
Bug 28469: Move "Skip to main content" to top of OPAC page

This patch moves the "Skip to main content" button out of the nav
element and to the top of the <body> element, so that it's the first
(potentially) viewable element on the page.

This means you can inject content above the navbar, which has
a relative position, and it won't disrupt the display of the
"Skip to main content" button.

To test:
1) Apply patch
2) Same test plan as Bug 22807:
Go to any page in the OPAC and hit the tab key. The "Skip to main
content" link should appear. Tabbing away from it should cause the link
to hide. Hitting the ENTER key when the link is highlighted should cause
the page to scroll to the main content.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc