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

Ensure danger buttons have red hover state #2742

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edwardloveall
Copy link

074cb1a converted links that submit forms to buttons. To keep these now-buttons looking like links it uses the link class. CSS looks for buttons that are not(.link) to continue to style them appropriately.

However any .button--danger buttons did not get all the style overrides. In particular, :hover and :disabled:hover states fell back to the normal button background colors (blue).

This fixes those buttons to have the appropriate red hover states.

In addition, .link--danger elements also had a blue hover state. I'm not sure when this was broken, or if it was always supposed to be like that. Either way, I changed it so they now also appear slightly darker when hovered to match the buttons.

074cb1a converted links that submit forms to buttons. To keep these
now-buttons looking like links it uses the `link` class. CSS looks for
buttons that are `not(.link)` to continue to style them appropriately.

However any `.button--danger` buttons did not get all the style
overrides. In particular, `:hover` and `:disabled:hover` states fell
back to the normal button background colors (blue).

This fixes those buttons to have the appropriate red hover states.

In addition, `.link--danger` elements also had a blue hover state. I'm
not sure when this was broken, or if it was always supposed to be like
that. Either way, I changed it so they now also appear slightly darker
when hovered to match the buttons.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant