Skip to content

docs(material/button-toggle): update a11y section #20183

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

Merged
merged 1 commit into from
Aug 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/material/button-toggle/button-toggle.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ be configured globally using the `MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS` injection t
<!-- example(button-toggle-appearance) -->

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

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