Skip to content

Commit ff7f6c0

Browse files
committed
Make button hover, focus, and active styles consistent (#360)
1 parent 40ab6d8 commit ff7f6c0

File tree

4 files changed

+544
-1045
lines changed

4 files changed

+544
-1045
lines changed

sitemedia/semantic/src/site/elements/button.overrides

+10
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@
3535
box-shadow: none !important;
3636
}
3737
}
38+
39+
&.active:hover {
40+
background: @basicActiveBackground;
41+
color: @basicActiveTextColor;
42+
}
43+
}
44+
45+
&.active:hover {
46+
background: @activeBackgroundColor;
47+
color: @activeColor;
3848
}
3949

4050
&.disabled {

sitemedia/semantic/src/site/elements/button.variables

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
@hoverColor: @invertedTextColor;
3131

3232
/* Focused */
33-
@focusBackgroundColor: @primaryColor;
34-
@focusColor: @invertedTextColor;
33+
@focusBackgroundColor: @backgroundColor;
34+
@focusColor: @textColor;
3535
@focusOutline: 2px dashed black;
3636

3737
/* Pressed Down */
@@ -57,3 +57,6 @@
5757
@basicActiveBackground: @primaryColor;
5858
@basicActiveTextColor: @invertedTextColor;
5959

60+
/* Basic Focus */
61+
@basicFocusBackground: @basicBackground;
62+
@basicFocusTextColor: @basicTextColor;

0 commit comments

Comments
 (0)