Skip to content

bug(stepper): aria-disabled not properly updated for step header buttons in linear steppers #23521

Open
@amysorto

Description

@amysorto

Reproduction

Example of a linear stepper with this issue: https://stackblitz.com/angular/vbkvxdpeoml?file=src%2Fapp%2Fstepper-overview-example.ts

Steps to reproduce:

  1. Enable linear mode
  2. Fill out first step
  3. Go back to step header using keyboard navigation
  4. Move focus to next step

Expected Behavior

The screen reader should read aloud the content of the button but not mention anything about being disabled since clicking the button will work.

Actual Behavior

The screen reader says the button is disabled.

This is because aria-disabled attribute is still set on the button, but shouldn't be anymore since the step is now complete.

Environment

  • Angular: 12.2.4
  • CDK/Material: 12.2.4
  • Tested on Chrome with NVDA, ChromeVox, and VoiceOver.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/stepper

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions