Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12240

[Search service] Do not repositionning the focus on hidden elements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.4, 4.9.0
    • None
    • None
    • None
    • 4.9.0 M2
    • Oui

      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.

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: