Skip to content

Commit

Permalink
Changed focus to focus-visible
Browse files Browse the repository at this point in the history
  • Loading branch information
emonadeo committed May 18, 2021
1 parent 00483fb commit 2013736
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/ScalePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default {
margin-left: -2px;
}
&:focus {
&:focus-visible {
z-index: 4 !important;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/styles/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
transition-duration: 100ms;
transition-timing-function: ease-in-out;

&:focus:not(:active) {
&:focus-visible {
background-color: color.$focus;
color: color.$on-focus;

Expand All @@ -32,7 +32,7 @@
transition-duration: 100ms;
transition-timing-function: ease-in-out;

&:focus:not(:active) {
&:focus-visible {
outline: none;
box-shadow: 0 0 0 4px color.$focus;
}
Expand Down Expand Up @@ -61,7 +61,7 @@
}

&:active,
&[selected]:not(:focus) {
&[selected]:not(:focus-visible) {
transform: translate(2px, 2px);
box-shadow: none;
}
Expand Down

0 comments on commit 2013736

Please sign in to comment.