Skip to content

Commit c536350

Browse files
authored
Fix lib-button-as-link not using color argument
.lib-button-as-link(); was only using its @_link-color for disabled variants. It was also inefficiently emitting both the default .lib-link() hover colors, and the mixin's own provided @_link-color-hover variant. Let's bring both arguments into the actual .lib-link() call instead.
1 parent edafa51 commit c536350

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/web/css/source/lib/_buttons.less

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,14 @@
200200
.lib-css(line-height, @_line-height);
201201
.lib-css(margin, @_margin);
202202
.lib-css(padding, @_padding);
203-
.lib-link();
203+
.lib-link(
204+
@_link-color: @_link-color,
205+
@_link-color-hover: @_link-color-hover
206+
);
204207
background: none;
205208
border: 0;
206209
display: inline;
207210

208-
&:hover {
209-
.lib-css(color, @_link-color-hover);
210-
}
211-
212211
&:hover,
213212
&:active,
214213
&:focus {

0 commit comments

Comments
 (0)