Skip to content

EuiStepsHorizontal should have aria-disabled on steps that users cannot take action #7686

Closed

Description

@1Copenut

Describe the problem

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.

WCAG or Vendor Guidance (optional)

Screenshots or Trace Logs

Screenshot 2024-04-18 at 2 55 48 PM

Activity

  1. 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
  2. cee-chen commented on Apr 16, 2024

    @cee-chen
    Contributor

    Would setting aria-disabled on the disabled step suffice? If not, that directive would conflict directly with the goal of #5666.

  3. 1Copenut commented on Apr 18, 2024

    @1Copenut
    ContributorAuthor

    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.

  4. 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
  5. self-assigned this
    on Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions