]> git.koha-community.org Git - koha.git/commit
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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 3 Aug 2021 04:55:48 +0000 (18:55 -1000)
commitd30e600cc75d486851cc5d70354451cac52e61e3
tree8b55408c2403b84dfdf14af8b92d728b94cc9bd5
parent2092a8c5c5ecf053694fb81d88de67f8c9f78dc1
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>
(cherry picked from commit 97e81df59ecfcd1509863381dafdf7c114fe1b7b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc