Skip to content

feat(MatStepper): Ability to focus the current step header #27450

Open
@jackalvrus

Description

@jackalvrus

Feature Description

I would like to be able to programmatically set focus to the current step header.

Use Case

There are 2 use cases where I would like to be able to programmatically set focus to a step header:

  1. When initially loading a page, I want to be able to give focus to the current step header.
  2. When switching between steps programmatically using MatStepper.next, if anything has been done that caused the focus to shift outside of the stepper, the intended behavior of focusing the newly-selected header does not happen. I need to be able to move the focus back to the current step header.

Metadata

Metadata

Assignees

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/stepperfeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions