Skip to content

Commit

Permalink
Add fallback for IE8 styles
Browse files Browse the repository at this point in the history
  • Loading branch information
NickColley committed May 10, 2019
1 parent 0ea5446 commit d0bd0b1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/accordion/_accordion.scss
Expand Up @@ -125,7 +125,9 @@
}

.govuk-accordion__section--expanded .govuk-accordion__section-header--focused {
border-top-color: $govuk-focus-colour;
@include govuk-not-ie8 {
border-top-color: $govuk-focus-colour;
}
// 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.
Expand Down Expand Up @@ -159,6 +161,13 @@
}
}

@include govuk-if-ie8 {
&:focus {
color: $govuk-text-colour;
background: $govuk-focus-colour;
}
}

// Remove default button focus outline in Firefox
&::-moz-focus-inner {
padding: 0;
Expand Down

0 comments on commit d0bd0b1

Please sign in to comment.