Skip to content

Commit

Permalink
fix(accordion): enlarge focus outline
Browse files Browse the repository at this point in the history
  • Loading branch information
asudoh committed Jan 25, 2019
1 parent c1bc790 commit 70313fd
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 70313fd

Please sign in to comment.