Skip to content
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

Closed
sconstantinides opened this issue Aug 24, 2015 · 9 comments
Closed

btn-secondary-outline appears disabled #17286

sconstantinides opened this issue Aug 24, 2015 · 9 comments

Comments

@sconstantinides
Copy link

Sorry if it's been mentioned already, but the normal state of btn-secondary-outline looks disabled.

screen shot 2015-08-24 at 12 26 44 pm

For reference: below are the current button text/border contrast ratios:

  • Primary: 4.6
  • Secondary: 1.6
  • Success: 2.5
  • Warning: 1.9
  • Danger: 4
@cvrebert
Copy link
Collaborator

CC: @patrickhlauke as this also touches on accessibility

@zacechola
Copy link

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 #000 background:

  • Primary: 4.5
  • Secondary: 13.1
  • Success: 8.5
  • Warning: 10.8
  • Danger: 5.3

@patrickhlauke
Copy link
Member

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.

@kkirsche
Copy link
Contributor

@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 $body-bg which we have for the body background color

@sconstantinides
Copy link
Author

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.

@zacechola
Copy link

The buttons may not always be on the body as well, so using $body-bg might not be the most helpful. My vote would be to 1) Use $gray-dark instead of $btn-secondary-border to adjust the example contrast in the docs and 2) add an a11y callout.

@olvlvl
Copy link
Contributor

olvlvl commented Sep 1, 2015

Ironically the disabled button is more contrasted with color: #373A3C compared to #CCC. Something like #8C8C8C for color/border would look better.

@spdpiyush
Copy link

spdpiyush commented Oct 13, 2016

I Suggest The Darken The Secondary Button And Increase The Border - radius and The Change The Border-color of Warning To These Value - #D50000

@mdo
Copy link
Member

mdo commented Nov 25, 2016

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.

@mdo mdo closed this as completed Nov 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants