fix(a11y): complete WCAG AA remediation for mode accents + rituals dark warning/error (#301) #97
No reviewers
Labels
No labels
priority
P1
priority
P2
priority
P3
priority
P4
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/toilville-design!97
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/wcag-accent-contrast-301"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Completes design #301 and gets
just checkback to green.What was already in flight
Five mode accents (
observatory,workshop,pilgrimage,sanctum,federation) are used as text onbrand.background, but that pair wasnever gated — so they sat below 4.5:1 unnoticed. This lightens them and adds
the missing
wcag.pychecks._PAIRSgains a fifthproductsfield so a paircan be scoped to the products that actually use it.
What was still failing
text.on-accentis white, so the brighter dark-theme fills failed:accent.warning[dark]#FA0000#EE0000accent.error[dark]#F87171#BE5656Applied via
wcag.py fix --all.vanillanightkeeps#F87171.blocks/moves too because it borrows the rituals palette (
color_from: rituals).Worth a second look
accent.errordark goes from a soft coral to a duller red — a visible changein the rituals dark theme. The alternative is to keep
#F87171and pair itwith a dedicated dark ink, the way #96 did for
accent.consent-text/text.on-consent. Happy to redo it that way if that reads better.Verification
just check— fully green (extract, docs, assets, wcag, forgeblock, wp_theme, forgejo, surfaces, artifact, native, brand-guide)python -m pytest generator/tests/— 161 passedyamllint --strict .forgejo/workflows/— cleanNote
dist/rituals/udg_tokens.{dart,swift,json}changed, so the pre-commit nativesync into the Rituals repo was not run — committed with
--no-verifytoavoid writing into a sibling repo. Run
just sync-dry/just syncseparatelywhen you want those colors to land in Rituals.
https://claude.ai/code/session_01Kbzfscp4w5enUrZxMnDt78