]> git.koha-community.org Git - koha.git/commit
Bug 22807: Add 'Skip to content' option
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 9 Jun 2020 13:10:53 +0000 (14:10 +0100)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Mon, 13 Jul 2020 03:39:53 +0000 (15:39 +1200)
commita0688b684d12687acbbd4f0a27ea019c3474ed0a
tree97f31fc0409fc9c59ab973183ae8a292687a7079
parent9c3412747c9a118345690a69feb4c15a7c757195
Bug 22807: Add 'Skip to content' option

This patch adds a 'Skip to content' link to the header bar which will
only appear upon the first use of 'tab' to navigate after any fresh page
load in the OPAC.

Test plan
1/ Load any page in the OPAC
2/ Hit the `tab` key
3/ Note the new 'Skip to main content' link appears at the top left of
the screen.
4/ Hit `Enter` or Click the button
5/ Note the page scrolls to the area of the page that has the first block
   containing a .maincontent class.
6/ Note that the next available focusable element after the first .maincontent
   block has been given focus.
7/ Note that the link has been hidden

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit c36560a1ad731af955c005306c2c2800057cd890)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit c8da2d3278a89df4d670465bfc55e269a4472f4e)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
koha-tmpl/opac-tmpl/bootstrap/js/global.js