Skip to content

Commit 36ce101

Browse files
jelbournmmalerba
authored andcommitted
docs(material/button-toggle): update a11y section (#20183)
The docs for button-toggle were not updated when the control was switched from using native checkboxes and radio-buttons to button elements with `aria-pressed`. This change corrects the docs to reflect the current state of the control.
1 parent 9e2d5b5 commit 36ce101

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/material/button-toggle/button-toggle.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ be configured globally using the `MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS` injection t
2323
<!-- example(button-toggle-appearance) -->
2424

2525
### Accessibility
26-
The button-toggles will present themselves as either checkboxes or radio-buttons based on the
27-
presence of the `multiple` attribute.
26+
The button-toggles internally use native `button` elements with `aria-pressed` to convey
27+
their toggled state. The button-toggle-group surrounding the individual buttons applies
28+
`role="group"` to convey the association between the individual toggles.
2829

2930
For button toggles containing only icons, each button toggle should be given a meaningful label via
3031
`aria-label` or `aria-labelledby`.

0 commit comments

Comments
 (0)