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

fix(button): prevent hover on disabled buttons in g90/g100 theme #5678

Merged
merged 3 commits into from
Mar 23, 2020

Conversation

janhassel
Copy link
Member

Fixes hover state on disabled buttons for dark themes (g90 and g100).

Changelog

Changed

  • Merged the disabled button styling rules in one place, effectively setting color: $disabled-03 for disabled buttons regardless of hover or focus state.

Removed

  • text-decoration: none from hovered/focused disabled buttons as I couldn't see a text decoration showing up when removed. If this is part of a browser compatibility issue, please let me know and I'll add it back.

Testing / Reviewing

  1. Visit react storybook deploy preview
  2. Go to Button, activate knob "disabled" and change "Carbon Theme" to either g90 or g100
  3. Hover over the buttons

Additional resources

Current behaviour (can be verified on https://carbon-components-react.netlify.com/?path=/story/buttons--default):
Screen Recording 2020-03-23 at 14 49 41

@janhassel janhassel requested a review from a team as a code owner March 23, 2020 13:57
@ghost ghost requested review from abbeyhrt and tw15egan March 23, 2020 13:57
@netlify
Copy link

netlify bot commented Mar 23, 2020

Deploy preview for carbon-elements ready!

Built with commit 04bc323

https://deploy-preview-5678--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Mar 23, 2020

Deploy preview for carbon-components-react ready!

Built with commit 04bc323

https://deploy-preview-5678--carbon-components-react.netlify.com

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me pending visual review

Copy link
Member

@laurenmrice laurenmrice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks 👍🏻

@tw15egan tw15egan merged commit e2c60ed into carbon-design-system:master Mar 23, 2020
@janhassel janhassel deleted the disabled-button-hover branch April 2, 2020 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants