MetaMask / design-tokens

Design tokens to be used throughout MetaMask products
https://metamask.github.io/design-tokens/?path=/docs/getting-started-introduction--docs
25 stars 15 forks source link

Add Accessibility Testing to Design Tokens (NICE TO HAVE - Non critical) #657

Open garrettbear opened 2 months ago

garrettbear commented 2 months ago

Title: Add Accessibility Testing to Design Tokens

Description

To ensure our design tokens meet accessibility standards, this ticket focuses on integrating accessibility testing into our design token workflow. This will help identify and rectify any accessibility issues early in the design process, particularly focusing on color contrast, typography readability, and overall compliance with WCAG guidelines.

Technical Details

Acceptance Criteria

  1. Automated accessibility testing with A11Y storybook plugin
  2. Created stories with a comprehensive text and background color combinations (and varying text size?, if not picked up automatically) - Call out every combination of text and background color. NICE TO HAVE: Add the contrast ratios for each combination
  3. Document what text/color combinations are not accessible - Any design tokens failing the accessibility tests are identified and documented.
  4. See attached screenshot for expected output.
georgewrmarshall commented 2 months ago

Screenshot 2024-04-15 at 9 56 18 AM