Skip to content

Commit

Permalink
Ensure danger buttons have red hover state
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
edwardloveall committed Jan 4, 2025
1 parent d5c3c56 commit 55b04ad
Show file tree
Hide file tree
Showing 6 changed files with 3,250 additions and 3,342 deletions.
62 changes: 36 additions & 26 deletions app/assets/builds/administrate/application.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/assets/builds/administrate/application.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit 55b04ad

Please sign in to comment.