Since CMS-12131, when executing a search by selecting a facet filter, the focus is replaced on element with data-ametys-search-role="facet-filters" for RGAA purpose.
But it leads to keyboard navigation issues when the element with data-ametys-search-role="facet-filters" is hidden (on mobile view for example)
The focus should be replaced on visible elements only.
Moreover, when replacing focus, tabindex=-1 should be positionned only if element is not already a focusable element. Indeed, if the element is a button, by setting tabindex=-1, the button is no longer part of the keyboard navigation.
- Référence
-
CMS-12131 [Search service] Repositioning the focus after applying a facet filter
- Closed