Skip to content

bug(mat-stepper): failing basic accessibility rule #26507

@jennifergoncalves

Description

@jennifergoncalves

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

mat-stepper is creating the tabpanels INSIDE the tablist. This is semantically incorrect and fails an accessibility rule surrounding roles. The "tabs" should be in the tablist, not the tabpanels.

Screenshot 2023-01-25 at 11 38 59 AM

Screenshot 2023-01-25 at 12 00 25 PM

Reproduction

Steps to reproduce:

  1. run accessibility testing (I use the Chrome AXE plugin) on the documentation site: https://material.angular.io/components/stepper/overview

Expected Behavior

The "tabs" should be in the tablist, the tabpanels should NOT be inside the tablist

Actual Behavior

mat-stepper is creating the tabpanels INSIDE the tablist.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions