fix: improve contrast for gradient actions - #166
Open
efegokdemir wants to merge 1 commit into
Open
efegokdemir wants to merge 1 commit into
efegokdemir wants to merge 1 commit into
Conversation
❌ Deploy Preview for stellartickets failed.
|
efegokdemir
force-pushed
the
fix/accessible-action-gradient
branch
from
September 27, 2026 11:41
388531c to
d66e2ef
Compare
Author
|
Rebased onto latest main and resolved the contrast conflict by carrying the action-gradient change into the current shared Button variant. Validation: git diff --check; TypeScript validation is blocked by an existing syntax error in src/app/my-tickets/page.tsx. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #149 by giving interactive gradient actions darker stops that preserve the existing brand gradient while meeting WCAG AA contrast for white text.
Changes
--gradient-actiontoken with contrast-safe violet, magenta, and amber stops.bg-gradient-actionutility.bg-gradient-sunsetfor decorative and non-interactive brand surfaces.Testing
npm run lintnpx tsc --noEmitnpm test -- --run(5 files, 20 tests passed)npm run buildgit diff --checkNotes
The original brand gradient remains unchanged for decorative uses; interactive controls use a separate token so the contrast fix does not alter the broader visual identity.