-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(material/stepper): fix nested tabpanel role in stepper #30410
base: main
Are you sure you want to change the base?
Conversation
Deployed dev-app for e862a7f to: https://ng-dev-previews-comp--pr-angular-components-30410-dev-fbsgn7x8.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
b1e74eb
to
49c1419
Compare
3632365
to
c71e31b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why we're changing the entire accessibility pattern, instead of changing the hierarchy of the tab-related roles?
It seems that the vertical stepper seems to match the tree pattern better with its current structure. Otherwise, I believe it would take a larger revamp of the vertical stepper that I would like to request guidance on if that's preferred instead. |
1 similar comment
It seems that the vertical stepper seems to match the tree pattern better with its current structure. Otherwise, I believe it would take a larger revamp of the vertical stepper that I would like to request guidance on if that's preferred instead. |
I see the issue in that we don't have a common container for all the headers in vertical mode so there's no way to set
|
Updates Angular Components Stepper component to fix the nested aria-role tabpanel in the vertical stepper. Fixes b/361783174
…ee-related Updates Angular Components Stepper vertical stepper to use and match correct aria attributes to match role=tree instead of using tablist/tab/tabpanel since moving the tabpanel content outside of the mat-step changes the visual look of the vertical stepper. WIP: update the docs to mention change of roles for vertical stepper to tree and its appropriate aria-attributes. Fixes b/361783174
Updates previous fix to Angular Components stepper to remove unnecessary roles and attributes. Also updates Stepper docs with latest vertical stepper aria attribute and role changes. Updates stepper-demo heading level elements for accessibility purposes.
Cleans up previous changes by removing unnecessary aria role of group wrapping the step-header and step-content.
c71e31b
to
e862a7f
Compare
Updates Angular Components Stepper component to fix the nested aria-role "tabpanel" in the vertical stepper by converting vertical stepper role from "tablist" to "tree" and updating its associated aria attributes.
Before fix screenshot
After fix screenshot
Fixes b/361783174