Skip to content

Commit fe62a1c

Browse files
committed
TMS-1164: Remove color changing for button hover-styles
1 parent 8aeb085 commit fe62a1c

File tree

2 files changed

+11
-59
lines changed

2 files changed

+11
-59
lines changed

CHANGELOG.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
- TMS-1164: Remove color changing for button hover-styles
11+
1012
## [1.5.0] - 2025-10-01
1113

1214
- TMS-1201: Add iframe-field for video fields

assets/styles/ui-components/_button.scss

Lines changed: 9 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ $button-secondary-border-color: $button-primary-border-color;
1111
text-transform: uppercase;
1212
padding: .5rem 1.5rem;
1313
border-color: transparent !important;
14-
// box-shadow: 1px 1px 8px 0 bulmaLighten($primary-invert, 50);
1514
color: $primary;
1615
background-color: $primary-invert;
1716

@@ -20,19 +19,17 @@ $button-secondary-border-color: $button-primary-border-color;
2019
&:focus,
2120
&.is-focused {
2221
box-shadow: 0 .15rem .375rem rgba(0, 0, 0, .15);
23-
background-color: $primary !important;
24-
color: $primary-invert !important;
25-
border-color: $primary-invert !important;
22+
color: $primary;
23+
}
2624

27-
&:active {
28-
background-color: $primary-invert !important;
29-
color: $primary !important;
30-
text-decoration: underline !important;
31-
outline: none !important;
25+
&:active {
26+
background-color: $primary-invert !important;
27+
color: $primary !important;
28+
text-decoration: underline !important;
29+
outline: none !important;
3230

33-
.icon {
34-
fill: currentColor !important;
35-
}
31+
.icon {
32+
fill: currentColor !important;
3633
}
3734
}
3835

@@ -53,17 +50,6 @@ $button-secondary-border-color: $button-primary-border-color;
5350
color: $primary-invert !important;
5451
border-color: $primary-invert !important;
5552

56-
&:hover,
57-
&:focus {
58-
color: $primary !important;
59-
background-color: $primary-invert !important;
60-
border-color: $primary-invert !important;
61-
62-
.icon {
63-
fill: $primary !important;
64-
}
65-
}
66-
6753
&.is-outlined {
6854
&:hover,
6955
&:focus {
@@ -86,23 +72,6 @@ $button-secondary-border-color: $button-primary-border-color;
8672
fill: currentColor !important;
8773
color: inherit;
8874
}
89-
90-
&:hover,
91-
&:focus {
92-
background-color: $link-hover !important;
93-
94-
.icon {
95-
fill: currentColor !important;
96-
color: inherit;
97-
}
98-
}
99-
100-
&:active,
101-
&.is-active {
102-
background-color: $primary !important;
103-
color: $primary-invert !important;
104-
border-color: $primary-invert !important;
105-
}
10675
}
10776

10877
&.is-secondary {
@@ -112,30 +81,11 @@ $button-secondary-border-color: $button-primary-border-color;
11281
.icon {
11382
fill: currentColor !important;
11483
}
115-
116-
&:hover,
117-
&.is-hovered,
118-
&:focus,
119-
&.is-focused {
120-
border-color: $primary-invert !important;
121-
background-color: $primary !important;
122-
color: $primary-invert !important;
123-
124-
.icon {
125-
fill: currentColor !important;
126-
}
127-
}
12884
}
12985

13086
&.is-outlined {
13187
border-color: $primary-invert !important;
13288
background-color: transparent !important;
13389
color: $primary-invert !important;
134-
135-
&:hover,
136-
&:focus {
137-
background-color: $primary-invert !important;
138-
color: $primary !important;
139-
}
14090
}
14191
}

0 commit comments

Comments
 (0)