Skip to content

Commit

Permalink
Update site/docs/components/button/accessibility.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Wooding <[email protected]>
  • Loading branch information
libertymayc and joshwooding committed Sep 5, 2023
1 parent 5a00d5a commit 8256bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/components/button/accessibility.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data:

### Best practices

- When a Button has both an icon and text, pass `aria-hidden={true}` to the icon so that its text is not announced by screen readers.
- When a Button has both an icon and text, use`aria-hidden` on the icon so that screen readers do not announce its text.
- When a Button has an icon only and no text, pass an `aria-label` to Button that describes its purpose.

#### Focusable disabled button
Expand Down

0 comments on commit 8256bca

Please sign in to comment.