#91701Skip focus on disabled tabs for keyboard users
Description
When filtering types of content elements with the search input “Filter by:”, all tabs with no results get disabled and you cannot click the disabled tabs with the mouse. But if you tab through the tab menu with your keyboard with the TAB key, the disabled tabs still get focus (see screenshot).
Goal: disabled tabs should not get keyboard focus
Implementation example:
- Add tabindex=”-1” to disabled tabs like this:
Menu