Ensure to pass 4.5:1 contrast ratio everywhere#30548
Closed
Conversation
This was referenced Apr 10, 2020
Member
Author
|
This PR itself can now tackle insufficient contrasts through our codebase and docs, now that #31276 bumped |
Closed
Member
|
@ffoodd is this still valid or can we close it? |
Member
Author
|
We can close it. If we're still missing some contrast out there, we'll tackle it later. |
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.
Sounds like dependabot one, but isn't :)
Paving the way in #30468 — and to keep going with #29315 : my goal is to make this happen after tackling every obstacles.
To solve before the bump
Those should probably adressed separately, consider this as a roadmap to enlightment :D
.btn-success:hovercase mentionned in #30468 (comment);color-level(),lighten()anddarken()seem misused: either on:hoverfor buttons (always darken) or to definecolorandbackground-colorwith the same level, no matter what the base color is (eg..alert-lightseems wrong) — there's probably room to improvement by usingtint()andshade()here;*-bg-leveland*-border-levelvariables #30487$darkto$gray-900#30550 →.text-info,.text-black-50and.text-white-50can't make it to 4.5:1 — however, using$gray-900instead of$gray-800for$darkwould solve this (and several other dark-ish things with insufficient contrasts);.text-mutedor.disabledthings;.btn-outline-*and.link-*examples should be shown with dark background:Merging this would be a kind of consecration 🎉
Fixes #25126