fix(#94): replace text-white with text-primary-fg on all primary buttons #109
Reference in New Issue
Block a user
Delete Branch "feature/94-fix-dark-save-button"
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?
Closes #94
Problem
In dark mode
--c-primaryswitches from navy#012851to mint#a1dcd8. Buttons usingbg-primary text-whiteshowed white text on mint at ~1.4:1 — invisible. Buttons usingbg-brand-navy text-whitewere also invisible: navy (#012851) on the dark canvas (#0d0d0d) at 1.3:1.Fix
28 components updated:
bg-primary ... text-white→text-primary-fghover:bg-primary hover:text-white→hover:bg-primary hover:text-primary-fgbg-brand-navy ... text-white ... hover:bg-brand-navy/90→bg-primary ... text-primary-fg ... hover:bg-primary/90(4 enrich/new files)Light mode unchanged:
primary-fg = whitein light mode, so no visual difference.Dark mode:
primary-fg = navy (#012851)on mint button = readable.Test plan