Skip to content

Commit dfc6d12

Browse files
fixed icon color for outlined buttons
1 parent 5be07ef commit dfc6d12

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

src/Elements/Button/mixins.scss

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -277,21 +277,27 @@
277277
/// OUTLINED STYLE
278278
///
279279
@if $outlined {
280+
$textcolor: if(theme('type') == 'dark', theme('color', 'negative'), $bg-color);
280281
background: transparent;
281-
@if(theme('type') == 'dark') {
282-
color: theme('color', 'negative');
283-
} @else {
284-
color: $bg-color;
282+
color: $textcolor;
283+
i, [class^="#{class('icon', 'class-name')}"] {
284+
color: $textcolor;
285285
}
286286
} @else {
287287
background: $bg-color;
288288
color: theme('color', 'negative');
289+
i, [class^="#{class('icon', 'class-name')}"] {
290+
color: theme('color', 'negative');
291+
}
289292
}
290293
text-shadow: 0 1px 1px darken($bg-color, 6%);
291294
border: theme('border', 'width') theme('border', 'style') $border-color;
292295
&:hover {
293296
background: lighten($bg-color, 7.5%);
294297
color: theme('color', 'negative');
298+
i, [class^="#{class('icon', 'class-name')}"] {
299+
color: theme('color', 'negative');
300+
}
295301
}
296302
&:active,
297303
&.#{class('button', 'active')} {
@@ -302,9 +308,6 @@
302308
background: lighten($bg-color, 12.5%);
303309
}
304310
}
305-
i, [class^="#{class('icon', 'class-name')}"] {
306-
color: theme('color', 'negative');
307-
}
308311

309312
///
310313
/// GRADIENT

0 commit comments

Comments
 (0)