You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EuiStepsHorizontal should have aria-disabled on steps that users cannot take action #7686
The EuiHorizontalSteps component blocks click events when a step is disabled, but allows the button to take keyboard focus. It would be an improvement if the button had a tabindex="-1" to prevent it from taking keyboard focus either while disabled. Screenshot below. an aria-disabled="true" attribute so screen reader users can hear the button in the tabindex, but also be made aware it's not currently available.
changed the title [-]`< EuiStepsHorizontal/>` should not allow keyboard focus on disabled steps[/-][+]`EuiStepsHorizontal` should not allow keyboard focus on disabled steps[/+]on Apr 15, 2024
Would setting aria-disabled on the disabled step suffice? If not, that directive would conflict directly with the goal of #5666.
Yes it would. I talked with our auditor a bit more and we agreed aria-disabled="true" while still allowing focus, is the right course of action. I'll take this as an action item to update the component and issue a PR.
changed the title [-]`EuiStepsHorizontal` should not allow keyboard focus on disabled steps[/-][+]`EuiStepsHorizontal` should have `aria-disabled` on steps that users cannot take action[/+]on Apr 18, 2024
Activity
[-]`< EuiStepsHorizontal/>` should not allow keyboard focus on disabled steps[/-][+]`EuiStepsHorizontal` should not allow keyboard focus on disabled steps[/+]cee-chen commentedon Apr 16, 2024
Would setting
aria-disabledon the disabled step suffice? If not, that directive would conflict directly with the goal of #5666.1Copenut commentedon Apr 18, 2024
Yes it would. I talked with our auditor a bit more and we agreed
aria-disabled="true"while still allowing focus, is the right course of action. I'll take this as an action item to update the component and issue a PR.[-]`EuiStepsHorizontal` should not allow keyboard focus on disabled steps[/-][+]`EuiStepsHorizontal` should have `aria-disabled` on steps that users cannot take action[/+]