Skip to content

Commit

Permalink
Add support for IE8 outlines
Browse files Browse the repository at this point in the history
  • Loading branch information
NickColley committed May 8, 2019
1 parent 531aee1 commit d761189
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/helpers/_focusable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@
// When colours are overridden, for example when users have a dark mode,
// backgrounds and box-shadows disappear, so we need to ensure there's a
// transparent outline which will be set to a visible colour.
outline: $govuk-focus-width solid transparent;
outline-offset: 0;

// Since Internet Explorer 8 does not support box-shadow, we want to force the user-agent outlines
@include govuk-not-ie8 {
outline: $govuk-focus-width solid transparent;
outline-offset: 0;
}
color: $govuk-text-colour;
background-color: $govuk-focus-colour;
// sass-lint:disable indentation
Expand Down

0 comments on commit d761189

Please sign in to comment.