Skip to content

Commit

Permalink
feat(toggle): add updated focus states (#55)
Browse files Browse the repository at this point in the history
- high contrast included
  • Loading branch information
hellobrian authored and marijohannessen committed May 2, 2017
1 parent efee964 commit 7f2af35
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/toggle/_toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,15 @@
}
}

.bx--toggle:focus + .bx--toggle__label .bx--toggle__appearance {
@include focus-outline;
.bx--toggle:focus + .bx--toggle__label {
.bx--toggle__appearance:before {
outline: 1px solid transparent;
}

.bx--toggle__appearance:after {
box-shadow: 0 0 0 3px $color__blue-20;
outline: 1px solid transparent;
}
}

.bx--toggle:disabled + .bx--toggle__label {
Expand Down

0 comments on commit 7f2af35

Please sign in to comment.