Skip to content

A platform for community discussion. Free, open, simple.

UX: primary & danger buttons should lighten on hover in dark themes

Kris5cf1a9a23a50
diff --git a/app/assets/stylesheets/common/components/buttons.scss b/app/assets/stylesheets/common/components/buttons.scss
index d8b15095e77..e3a77bb6052 100644
--- a/app/assets/stylesheets/common/components/buttons.scss
+++ b/app/assets/stylesheets/common/components/buttons.scss
@@ -88,7 +88,10 @@
}
&:hover,
&.btn-hover {
- background: scale-color($tertiary, $lightness: -20%);
+ background: dark-light-choose(
+ scale-color($tertiary, $lightness: -20%),
+ scale-color($tertiary, $lightness: 20%)
+ );
}
&:active,
&.btn-active {
@@ -115,7 +118,10 @@
}
&:hover,
&.btn-hover {
- background: scale-color($danger, $lightness: -20%);
+ background: dark-light-choose(
+ scale-color($danger, $lightness: -20%),
+ scale-color($danger, $lightness: 20%)
+ );
}
&:active,
&.btn-active {