You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cdk/stepper/stepper.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -59,10 +59,10 @@ resetting it will call `reset` on the underlying form control which clears the v
59
59
60
60
### Accessibility
61
61
Apart from the built-in keyboard support, the stepper doesn't apply any treatment. When implementing
62
-
your own component, it is recommended that the stepper is treated as a tabbed view for accessibility
63
-
purposes by giving it a `role="tablist"`. The header of step that can be clicked to select the step
64
-
should be given `role="tab"`, and the content that can be expanded upon selection should be given
65
-
`role="tabpanel"`. Furthermore, the step header should have an `aria-selected` attribute that
66
-
reflects its selected state.
62
+
your own component, it is recommended that the stepper is treated as a grouped view for accessibility
63
+
purposes by giving it a `role="group"`. The header of step that can be clicked to select the step
64
+
should be given `role="button"`, and the content that can be expanded upon selection should be given
65
+
`role="region"`. Furthermore, the step header should have an `aria-expanded` attribute that
66
+
reflects its expanded state.
67
67
68
68
You can refer to the [Angular Material stepper](https://github.com/angular/components/tree/main/src/material/stepper) as an example of an accessible implementation.
0 commit comments