-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
btn-secondary-outline appears disabled #17286
Comments
CC: @patrickhlauke as this also touches on accessibility |
Those contrast ratios are against a white background, but the button background is actually set to transparent in the mixin. Edit, with another test: Against a
|
but then again, our very own examples in the docs are against white background... not much that can be done here unless we make an assumption that most devs will use it against a light/white background, and darken those accordingly (which then makes them worse against any darker backgrounds) or we add a general note somewhere about devs needing to check their contrast ratios. |
@patrickhlauke we could (though lot's of work) make unique colors for light or dark backgrounds and apply them via a mixin similar to http://thesassway.com/intermediate/dynamically-change-text-color-based-on-its-background-with-sass While that's text color, the concept is the same. Just look at |
My thought would be to darken the secondary gray slightly to make its contrast more similar to the others. Toggling light/dark colors may be more work than it's worth. And you would still have issues when someone chooses a background color similar to a button color. |
The buttons may not always be on the body as well, so using |
Ironically the disabled button is more contrasted with |
I Suggest The Darken The Secondary Button And Increase The Border - radius and The Change The Border-color of Warning To These Value - #D50000 |
This is less of an issue with changes I made to the secondary button awhile back. More changes are coming to our grays in #21199, but there won't be any major changes to our overall styling for secondary buttons. |
Sorry if it's been mentioned already, but the normal state of btn-secondary-outline looks disabled.
For reference: below are the current button text/border contrast ratios:
The text was updated successfully, but these errors were encountered: