Skip to content

Commit

Permalink
Update Icon a11y docs to specify 3:1 contrast ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
nishasy committed Dec 2, 2023
1 parent 9092363 commit 608ed82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changeset/slow-pigs-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
3 changes: 2 additions & 1 deletion __docs__/wonder-blocks-icon/accessibility.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {IconMappings} from "./phosphor-icon.argtypes";
- Each icon should convey a single meaning.
- Icons should be easy to see.
- The color contrast should pass WCAG.
- At least 4.5:1 contrast ratio for icons.
- At least 3:1 contrast ratio for icons.
- Ideally, an icon should be accompanied by text. However, if an icon
is not accompanied by text, provide alt text.
- Do not provide alt text for decorative icons. Set the alt text
Expand Down Expand Up @@ -96,3 +96,4 @@ More information about all these points can be found in the
- [Bidirectionality - Material](https://m2.material.io/design/usability/bidirectionality.html)
- [Accessible Icons: How to Make Them for Your Website](https://blog.hubspot.com/website/accessible-icons)
- [HTML5 Accessibility Chops: title attribute use and abuse](https://www.tpgi.com/html5-accessibility-chops-title-attribute-use-and-abuse/)
- [Non-text Contrast (Level AA) - W3](https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html)

0 comments on commit 608ed82

Please sign in to comment.