]> git.koha-community.org Git - koha.git/commit
Bug 37988: Use Bootstrap 5 class .visually-hidden-focusable
authorOwen Leonard <oleonard@myacpl.org>
Tue, 24 Sep 2024 13:49:17 +0000 (13:49 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 29 Oct 2024 15:14:42 +0000 (16:14 +0100)
commit2b54c118c4851b222a96a1531607b94a144be7f7
tree28e0fdd5fe2e73641913c09d8ba9f7a767233735
parent68afa5ac893be4c1baa7cf615620cb71787c2908
Bug 37988: Use Bootstrap 5 class .visually-hidden-focusable

It looks to me like we can remove the visibility properties from the
home button CSS and wrap the text in a <span> with Bootstrap 5's
"visually-hidden-focusable" class:

https://getbootstrap.com/docs/5.3/getting-started/accessibility/#visually-hidden-content

That appears to give us the behavior we want: A focusable icon which
isn't obscured by the focus border.

To test, apply the patch and rebuild the staff interface CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface).

In the staff interface, test some pages by using tab or shift-tab to
move between elements on the page to confirm that the home icon can be
tabbed to.

Signed-off-by: Olivier Vezina <olivier.vezina@inLibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc