Skip to content

Commit

Permalink
Move CSS of hover underline to base from color variants
Browse files Browse the repository at this point in the history
  • Loading branch information
ysds authored and mdo committed Sep 2, 2018
1 parent 97801a7 commit d1de873
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions scss/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
vertical-align: baseline;
@include border-radius($badge-border-radius);

&[href] {
@include hover-focus {
text-decoration: none;
}
}

// Empty badges collapse automatically
&:empty {
display: none;
Expand Down
1 change: 0 additions & 1 deletion scss/mixins/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
&[href] {
@include hover-focus {
color: color-yiq($bg);
text-decoration: none;
background-color: darken($bg, 10%);
}
}
Expand Down

0 comments on commit d1de873

Please sign in to comment.