Skip to content

Commit 3b0b76a

Browse files
committed
Fix button styles
1 parent 957d8a8 commit 3b0b76a

2 files changed

Lines changed: 31 additions & 2 deletions

File tree

scss/_components.button.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,42 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
7272

7373
}
7474

75+
.btn.btn--text {
76+
text-decoration: underline;
77+
@include btn-variant(
78+
$background: transparent,
79+
$border: transparent,
80+
$color: $grey-dark,
81+
$hover-background: $grey-light,
82+
$hover-border: $grey-light,
83+
$hover-color: $grey-dark,
84+
$active-background: shade-color($grey-light, 1),
85+
$active-border: shade-color($grey-light, 1),
86+
$active-color: $grey-dark
87+
);
88+
}
89+
90+
.btn.btn--black {
91+
@include btn-variant($black);
92+
&.btn--outline {
93+
@include btn-outline-variant($black);
94+
}
95+
}
96+
7597
.btn.btn--dark {
7698
@include btn-variant($grey-dark);
7799
&.btn--outline {
78100
@include btn-outline-variant($grey-dark);
79101
}
80102
}
81103

104+
.btn.btn--light {
105+
@include btn-variant($grey-light);
106+
&.btn--outline {
107+
@include btn-outline-variant($grey-light);
108+
}
109+
}
110+
82111
.btn.btn--white {
83112
@include btn-variant($white);
84113
&.btn--outline {

scss/mixins/_button.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@
109109
$color,
110110
$border: $color,
111111
$hover-color: invert-color($color),
112-
$hover-border: shade-color($color, 1),
113-
$hover-background: shade-color($color, 1),
112+
$hover-border: $color,
113+
$hover-background: $color,
114114
$active-color: invert-color($color),
115115
$active-border: shade-color($color, 2),
116116
$active-background: shade-color($color, 2),

0 commit comments

Comments
 (0)