Skip to content

Commit

Permalink
fixes IE8 issue with "+/-" icons not being toggled
Browse files Browse the repository at this point in the history
For IE8 css pseudo elements, we needed to force a repaint to toggle
the icons. This is done by using CSS content property.

https://stackoverflow.com/questions/8703799/forcing-ie8-to-rerender-repaint-before-after-pseudo-elements
  • Loading branch information
aliuk2012 committed Jan 9, 2019
1 parent 04b0ce6 commit c3957c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/accordion/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@

// Vertical bar should be hidden when section is open, to display a '-' icon
.govuk-accordion__section--expanded .govuk-accordion__icon:after {
content: " ";
display: none;
}
}
Expand Down

0 comments on commit c3957c6

Please sign in to comment.