Skip to content

Commit d96de27

Browse files
authored
Merge pull request #840 from lalithkarikelli/button
style(button): primary button styling changes
2 parents ad7c5fa + 89b4de8 commit d96de27

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

src/scss/components/button/mixins/_hxButton.scss

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,11 @@
4848
@mixin hxButton-weight($weight) {
4949
@if $weight == primary {
5050
@include hxButton--primary;
51-
}
52-
@else if $weight == secondary {
51+
} @else if $weight == secondary {
5352
@include hxButton--secondary;
54-
}
55-
@else if $weight == tertiary {
53+
} @else if $weight == tertiary {
5654
@include hxButton--tertiary;
57-
}
58-
@else {
55+
} @else {
5956
// weightless (no additional styles)
6057
}
6158
}
@@ -67,16 +64,13 @@
6764
@mixin hxButton-size($size) {
6865
@if $size == small {
6966
padding: 0.125rem 0.5rem;
70-
}
71-
@else if $size == medium {
67+
} @else if $size == medium {
7268
font-size: 0.875rem;
7369
padding: 0.5rem 0.75rem;
74-
}
75-
@else if $size == large {
70+
} @else if $size == large {
7671
font-size: 1rem;
7772
padding: 1rem;
78-
}
79-
@else {
73+
} @else {
8074
// no additional styles
8175
}
8276
}
@@ -109,13 +103,11 @@
109103

110104
@mixin hxButton-active--primary {
111105
background-color: $blue-900;
112-
border-color: transparent;
113106
color: $gray-0;
114107
}
115108

116109
@mixin hxButton-disabled--primary {
117110
background-color: $gray-500;
118-
border-color: transparent;
119111
color: $gray-0;
120112
}
121113

@@ -126,7 +118,6 @@
126118

127119
@mixin hxButton-hover--primary {
128120
background-color: $blue-700;
129-
border-color: transparent;
130121
color: $gray-0;
131122
}
132123

@@ -178,7 +169,6 @@
178169
color: $blue-700;
179170
}
180171

181-
182172
/// ------------------------------------- ///
183173
/// ---------- TERTIARY BUTTON ---------- ///
184174
/// ------------------------------------- ///

0 commit comments

Comments
 (0)