Skip to content

Commit

Permalink
Fix button hover border (#30048)
Browse files Browse the repository at this point in the history
Fix regression from go-gitea/gitea#30014. The
rule was to broad and affecting things like `primary` button
unintentionally.

(cherry picked from commit bbaf62589fe538be4afc86455d772360de80e7d8)
  • Loading branch information
silverwind authored and earl-warren committed Mar 30, 2024
1 parent 2c4e854 commit 553ef46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web_src/css/modules/button.css
Expand Up @@ -11,7 +11,6 @@
.ui.button:focus {
background: var(--color-hover);
color: var(--color-text);
border-color: var(--color-secondary-dark-2);
}

.page-content .ui.button {
Expand Down Expand Up @@ -64,6 +63,10 @@ It needs some tricks to tweak the left/right borders with active state */
border-right: none;
}

.ui.buttons .button:hover {
border-color: var(--color-secondary-dark-2);
}

.ui.buttons .button:hover + .button {
border-left: 1px solid var(--color-secondary-dark-2);
}
Expand Down

0 comments on commit 553ef46

Please sign in to comment.