Skip to content

Add a11y lint rules for remaining #116 items (2, 3, 6, 10)#148

Open
drmikecrypto wants to merge 1 commit into
google-labs-code:mainfrom
drmikecrypto:feat/a11y-remaining-116-items
Open

Add a11y lint rules for remaining #116 items (2, 3, 6, 10)#148
drmikecrypto wants to merge 1 commit into
google-labs-code:mainfrom
drmikecrypto:feat/a11y-remaining-116-items

Conversation

@drmikecrypto

Copy link
Copy Markdown

Summary

  • Add borderColor component sub-token and WCAG 1.4.11 non-text-contrast lint rule (3:1 border vs background)
  • Add color(display-p3 ...) / color(srgb ...) parser support and wide-gamut-palette lint rule
  • Document forced-colors elevation fallbacks in spec; add missing-forced-colors-guidance prose lint
  • Document interactive state variant conventions; add interactive-state-tokens lint for missing hover/disabled and opacity-only disabled states
  • Pass documentSections and colorSources through DesignSystemState for prose and palette checks

Test plan

  • bun run spec:gen
  • bun test (291 pass) — non-text-contrast, wide-gamut-palette, missing-forced-colors-guidance, interactive-state-tokens, types, spec, broken-ref

Addresses #116 (items 2 partial, 3, 6, 10)

…, 10)

Addresses google-labs-code#116 (items 2 partial, 3, 6, 10): non-text contrast, wide-gamut palette guidance, forced-colors elevation prose, and interactive state tokens.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant