Skip to content

Commit

Permalink
chore(button): small fix anchor and focus style
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbin committed Feb 24, 2021
1 parent 7bf5d46 commit f84e952
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
display: inline-block;
padding: .25rem .75rem;
text-align: center;
text-decoration: none;
vertical-align: middle;
line-height: $btn-line-height;
font-size: $btn-font-size;
Expand All @@ -14,6 +15,12 @@
cursor: pointer;
outline: none;

&:hover,
&:focus,
&:active {
text-decoration: none;
}

@each $name, $color in $color-map {
&.#{$name} {
color: $white;
Expand All @@ -25,6 +32,7 @@

&:focus {
background-color: darken($color, 5%);
box-shadow: 0 0 0 .25rem rgba($color, .5);
}

&:active {
Expand All @@ -48,6 +56,7 @@
color: darken($color-primary, 10%);
text-decoration: underline;
background-color: transparent;
box-shadow: 0 0 0 .25rem rgba($color-primary, .5);
}

&:active {
Expand Down

0 comments on commit f84e952

Please sign in to comment.