Skip to content

Commit 36d08c6

Browse files
committed
TMS-1164: Minor button color changes
1 parent 82b6355 commit 36d08c6

File tree

6 files changed

+77
-32
lines changed

6 files changed

+77
-32
lines changed

assets/styles/helpers/_button.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,9 @@ $button-transition-speed: $speed !default;
106106
&,
107107
&:active,
108108
&.is-active {
109-
text-decoration: underline;
110-
// background-color: $button-background-primary;
111-
// border-color: $button-border-primary;
112-
// color: $button-text-primary;
109+
background-color: $button-background-primary;
110+
border-color: $button-border-primary;
111+
color: $button-text-primary;
113112

114113
.icon {
115114
fill: currentColor !important;

assets/styles/helpers/_color.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,16 @@
119119

120120
.button {
121121
&.is-#{$name} {
122-
color: $color !important;
123-
background-color: $color-invert !important;
124-
125-
.icon {
126-
fill: currentColor !important;
122+
&,
123+
&:hover,
124+
&:focus,
125+
&:active {
126+
color: $color !important;
127+
background-color: $color-invert !important;
128+
129+
.icon {
130+
fill: currentColor !important;
131+
}
127132
}
128133
}
129134

assets/styles/themes/_theme-neutraali-overrides.scss

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ $pill-background-active-focus: $primary;
1010
.site-header,
1111
.main-content {
1212
// Button styles
13-
.button {
14-
&.is-primary.is-outlined {
15-
&,
16-
&:active,
17-
&:hover,
18-
&:focus,
19-
&.is-active {
20-
border-color: $primary-dark !important; // sass-lint:disable-line no-important
21-
color: $primary-dark !important; // sass-lint:disable-line no-important
22-
23-
.icon {
24-
fill: $primary-dark !important; // sass-lint:disable-line no-important
25-
}
26-
}
27-
}
28-
}
13+
// .button {
14+
// &.is-primary.is-outlined {
15+
// &,
16+
// &:active,
17+
// &:hover,
18+
// &:focus,
19+
// &.is-active {
20+
// border-color: $primary-dark !important; // sass-lint:disable-line no-important
21+
// color: $primary-dark !important; // sass-lint:disable-line no-important
22+
23+
// .icon {
24+
// fill: $primary-dark !important; // sass-lint:disable-line no-important
25+
// }
26+
// }
27+
// }
28+
// }
2929

3030
.fly-out-nav__trigger {
3131
&:hover,
@@ -62,11 +62,16 @@ $pill-background-active-focus: $primary;
6262
.dropdown {
6363
.dropdown-trigger {
6464
.button {
65-
color: $black !important;
66-
border-color: $black !important;
65+
&,
66+
&:active,
67+
&:hover,
68+
&:focus {
69+
color: $black !important;
70+
border-color: $black !important;
6771

68-
.icon {
69-
fill: $black !important;
72+
.icon {
73+
fill: $black !important;
74+
}
7075
}
7176
}
7277
}

assets/styles/themes/_theme-paahde-overrides.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
.site-header,
77
.main-content,
88
.site-footer {
9-
.button {
9+
.button:not(.modal-close-button),
10+
.button.is-primary.is-inverted {
1011
&,
1112
&#js-back-to-top,
1213
&:hover,
1314
&:focus,
14-
&:active {
15+
&:active,
16+
&.is-active {
1517
color: $black !important;
1618
border-color: $black !important;
1719

assets/styles/themes/_theme-teraksensininen-overrides.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,17 @@
99
}
1010
}
1111
}
12+
13+
.gform_wrapper {
14+
.button,
15+
.gform_delete_file {
16+
&,
17+
&:hover,
18+
&:focus,
19+
&:active,
20+
&.is-active {
21+
background-color: $primary !important;
22+
color: $white !important;
23+
}
24+
}
25+
}

assets/styles/themes/theme-mustavalkoinen-overrides.scss

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222

2323
&__end {
2424
.button {
25-
border-color: $white !important;
25+
&,
26+
&:hover,
27+
&:focus,
28+
&:active,
29+
&.is-active {
30+
border-color: $white !important;
31+
}
2632
}
2733
}
2834

@@ -215,3 +221,17 @@
215221
}
216222
}
217223
}
224+
225+
.gform_wrapper {
226+
.button,
227+
.gform_delete_file {
228+
&,
229+
&:hover,
230+
&:focus,
231+
&:active,
232+
&.is-active {
233+
background-color: $black !important;
234+
color: $white !important;
235+
}
236+
}
237+
}

0 commit comments

Comments
 (0)