Skip to content

Commit

Permalink
fix(accordion): support IE for focus outline (#2315)
Browse files Browse the repository at this point in the history
Fixes #2059.
  • Loading branch information
asudoh authored Apr 25, 2019
1 parent b45c419 commit 5678b88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/accordion/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
}

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

Expand Down
5 changes: 5 additions & 0 deletions src/globals/scss/_helper-mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@
outline-offset: -2px;
}

@if ($type == 'outline-compat') {
border: 2px solid $focus;
box-sizing: border-box;
}

@if ($type == 'invalid') {
outline: 2px solid $support-01;
outline-offset: -2px;
Expand Down

0 comments on commit 5678b88

Please sign in to comment.