#103925Live search pagination has no keyboard actions implemented - and is also not reachable with keyboard navigation
Description
Tested on 13.2.0-dev (but I guess also 12 is affected)
- Open live Search
- search something that gives you a lot of results
- Use the keyboard to navigate the interface (Tab key & arrows keys)
Results
You will see that pretty everything is reachable using tab key and arrows key, except the pagination on the bottom left
Technical background
The navigation links are implemented as customElement(‘typo3-backend-live-search-result-page’)@
This custom element does not have any button or link features.
The current implementation only reacts on click events. Keyboard actions like key-press Enter or Space are not implemented.
Simply making this navigation reachable by keaboard (e.g. tabindex="0") will not make it work.
Reviews 2
Related issues 1
History 626
Show 1 earlier messages
-
Riccardo De Contardi changed description <span data-processor="relativetime" data-value="2024-05-26T15:58:36+00:00" > 05/26/24, 15:58 </span>
-
Georg Ringer changed status
NewAccepted TYPO3 Version1312 <span data-processor="relativetime" data-value="2024-05-27T20:13:38+00:00" > 05/27/24, 20:13 </span> -
Ayke Halder commented <span data-processor="relativetime" data-value="2024-06-18T08:38:52+00:00" > 06/18/24, 08:38 </span>
The pagination links/buttons are not reachable by keyboard because they do not have
tabindex="0"set.——
To make the pagination really screenreader friendly the whole pagination structure needs some changes:
- add
aria-label="Search result navigation"to<nav> - add
aria-label="Goto page N"to page-result-links - declare
aria-role="button"for page-result-links - add
aria-current="true"to currently active result-page-link ( https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current ) - use
aria-disabled="true"for custom disabled elements - maybe add
aria-hidden="true"to<typo3-backend-icon>?
<typo3-backend-live-search-result-pagination> <nav aria-label="Search result pagination"> <ul class="pagination pagination-sm"> <li class="page-item"> <typo3-backend-live-search-result-page aria-role="button" tabindex="0" class="page-link disabled" aria-disabled="true" page="" perpage="20" aria-label="Goto previous page"> <typo3-backend-icon identifier="actions-arrow-left-alt" size="small"></typo3-backend-icon> </typo3-backend-live-search-result-page> </li> <li class="page-item"> <typo3-backend-live-search-result-page aria-role="button" tabindex="0" page="1" aria-label="Goto page 1" perpage="20" class="page-link active" aria-current="true">1</typo3-backend-live-search-result-page> </li> <li class="page-item"> <typo3-backend-live-search-result-page aria-role="button" tabindex="0" aria-role="button" page="2" aria-label="Goto page 2" perpage="20" class="page-link ">2</typo3-backend-live-search-result-page> </li> <li class="page-item"> <typo3-backend-live-search-result-page aria-role="button" tabindex="0" page="3" aria-label="Goto page 3" perpage="20" class="page-link ">3</typo3-backend-live-search-result-page> </li> <li class="page-item"> <typo3-backend-live-search-result-page aria-role="button" tabindex="0" class="page-link " page="2" perpage="20" aria-label="Goto next page"> <typo3-backend-icon identifier="actions-arrow-right-alt" size="small"></typo3-backend-icon> </typo3-backend-live-search-result-page> </li> </ul> </nav> </typo3-backend-live-search-result-pagination>——
In general:
Can we implement correct aria-attributes directly into Web-Components instead of using attributes? - add
-
Ayke Halder changed subject
Live search pagination not reachable with keyboard navigationLive search pagination has no keyboard actions implemented - and is also not reachable with keyboard navigation description <span data-processor="relativetime" data-value="2024-06-18T09:23:25+00:00" > 06/18/24, 09:23 </span> -
Gerrit Code Review pushed patch set 1 for main to change 84750 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2024-06-18T09:24:34+00:00" > 06/18/24, 09:24 </span> -
Gerrit Code Review pushed patch set 1 for main to change 84782 <span data-processor="relativetime" data-value="2024-06-18T17:45:20+00:00" > 06/18/24, 17:45 </span>
-
Gerrit Code Review pushed patch set 2 for main to change 84782 <span data-processor="relativetime" data-value="2024-06-18T17:53:08+00:00" > 06/18/24, 17:53 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 84782 <span data-processor="relativetime" data-value="2024-06-18T19:28:00+00:00" > 06/18/24, 19:28 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 84782 <span data-processor="relativetime" data-value="2024-06-19T05:14:48+00:00" > 06/19/24, 05:14 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 84782 <span data-processor="relativetime" data-value="2024-06-19T05:30:02+00:00" > 06/19/24, 05:30 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 84782 <span data-processor="relativetime" data-value="2024-06-20T18:15:10+00:00" > 06/20/24, 18:15 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-19T14:39:00+00:00" > 09/19/24, 14:39 </span>
-
Gerrit Code Review pushed patch set 8 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-19T15:59:51+00:00" > 09/19/24, 15:59 </span>
-
Gerrit Code Review pushed patch set 9 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-19T16:08:31+00:00" > 09/19/24, 16:08 </span>
-
Gerrit Code Review pushed patch set 10 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-19T16:24:30+00:00" > 09/19/24, 16:24 </span>
-
Gerrit Code Review pushed patch set 11 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-19T16:27:27+00:00" > 09/19/24, 16:27 </span>
-
Gerrit Code Review pushed patch set 12 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-19T16:37:14+00:00" > 09/19/24, 16:37 </span>
-
Gerrit Code Review pushed patch set 13 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-19T16:41:33+00:00" > 09/19/24, 16:41 </span>
-
Gerrit Code Review pushed patch set 14 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-19T17:13:45+00:00" > 09/19/24, 17:13 </span>
-
Ayke Halder changed Related to #104796 <span data-processor="relativetime" data-value="2024-09-20T09:32:30+00:00" > 09/20/24, 09:32 </span>
-
Gerrit Code Review pushed patch set 15 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-22T14:37:15+00:00" > 09/22/24, 14:37 </span>
-
Gerrit Code Review pushed patch set 16 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-23T06:29:17+00:00" > 09/23/24, 06:29 </span>
-
Gerrit Code Review pushed patch set 17 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-24T14:51:30+00:00" > 09/24/24, 14:51 </span>
-
Gerrit Code Review pushed patch set 18 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-24T19:49:41+00:00" > 09/24/24, 19:49 </span>
-
Gerrit Code Review pushed patch set 19 for main to change 84782 <span data-processor="relativetime" data-value="2024-09-24T20:35:33+00:00" > 09/24/24, 20:35 </span>
I will look into it by the end of this week.