fix: make text colors legible #3250
Merged
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.
Fixes #3222
Fixes #3230
error.main
color to a lighter one for legible color contrast in validation error messagescontrastText
to more parts of the palette so we use it instead of defaulting to illegible near-blackerror.dark
as the button background instead oferror.main
. Hover styles darken a color, anderror.dark
is VERY dark currently, so I had it start at a lightened version and darken to the standard.The color palette will need more work - the color contrast between button background and text doesn't pass accessibility tests on other buttons (the blue ones). But this PR improves the most egregious places I had seen.
Testing
Validation messages
Given I am logged out,
When I type a letter in the email field and then click on the password field,
Then I see a legible validation message
Dialogs
Given I have created a new user,
When I suspend that user,
Then I see a confirmation dialog with legible buttons