Skip to content

Commit

Permalink
fix(accordion): enlarge focus outline (#1689)
Browse files Browse the repository at this point in the history
Refs #1671.
  • Loading branch information
asudoh authored Jan 25, 2019
1 parent c1bc790 commit f0c68bb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/accordion/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,24 @@
margin: 0;
transition: background-color $transition--base;

&:hover:before {
&:hover:before, &:focus:before {
content: '';
position: absolute;
top: -1px;
left: 0;
width: 100%;
height: calc(100% + 2px);
}

&:hover:before {
background-color: $hover-ui;
}

&:focus {
outline: none;
}

&:focus:before {
@include focus-outline('outline');
}
}
Expand Down

0 comments on commit f0c68bb

Please sign in to comment.