Skip to content

Commit

Permalink
fix(button): update focus styles to use box-shadow (#4867)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack authored Dec 13, 2019
1 parent 818d5e1 commit e626cdf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/components/src/components/button/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
text-align: left;
text-decoration: none;
transition: all $duration--fast-01 motion(entrance, productive);
outline: $button-outline-width solid transparent;
outline-offset: -4px;
outline: none;
position: relative;
max-width: rem(320px);

Expand Down Expand Up @@ -72,7 +71,7 @@

&:focus {
border-color: $focus;
outline-color: $ui-02;
box-shadow: inset 0 0 0 $button-outline-width $ui-02;
}

&:disabled:hover,
Expand All @@ -83,7 +82,7 @@
background-color: $disabled-02;
border-color: $disabled-02;
text-decoration: none;
outline-color: $disabled-02;
box-shadow: none;
}

&:active {
Expand Down

0 comments on commit e626cdf

Please sign in to comment.