https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39489

David Nind <da...@davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #182735|0                           |1
        is obsolete|                            |

--- Comment #17 from David Nind <da...@davidnind.com> ---
Created attachment 183057
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=183057&action=edit
Bug 39489: 'Refine your search' aria-expanded attribute

On smaller screens (phones, tablets), the 'Refine your search' expandable
section in the Koha OPAC is not clearly announced by screen readers.
The reason for this is that the expandable section toggle button is instead
identified and announced as a link.
This results in screen reader users incorrectly expecting to be redirected to
another page, and not being informed that there is a expandable section.

For elements with a class of menu-collapse-toggle, add an aria-expanded
attribute which defaults to false, and is toggled to true upon that specific
section being expanded.
If the screen width is 992px or higher, then remove the aria-expanded attribute
on load as it is irrelevant, and potentially misleading.

To test:

1) Apply the patch.

on a small screen:

2) Run a library catalogue search in the Koha OPAC.
3) Right click on the page to inspect it.
4) Inspect the 'Refine your search' element.
5) Notice that it now has a aria-expanded attribute which is set to false.
6) Open the expandable 'Refine your search' section.
7) Notice that the aria-expanded attribute on the 'Refinine your search'
element is now set to true.
8) Navigate to Home > Most popular titles
9) Repeat steps 3-7
10) Navigate to Home > Details for > Full subscription history
11) Repeat steps 3-7

then, on a bigger screen (992px and above)

12) Run a library catalogue search in the Koha OPAC.
13) Right click on the page to inspect it.
14) Inspect the 'Refine your search' element.
15) Notice that there is no 'aria-expanded' attribute, as in this case the
section isn't expandable.
16) Resize your viewport below 992px, and notice that 'aria-expanded' reappears
and is set to false.
17) Resize your viewport while remaining below the 992px limit, and notice that
'aria-expanded' remains set to false.
18) Open 'Refine your search', notice that 'aria-expanded' is set to true.
19) Resize your viewport while remaining below the 992px limit, and notice that
'aria-expanded' remains set to true.

Note: now updated to handle screen resizes
Signed-off-by: David Nind <da...@davidnind.com>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to