Skip to content

Commit

Permalink
Fix colour swatch styles for IE8
Browse files Browse the repository at this point in the history
By default static breakpoints is set to desktop
and those media queries get rasterized.

For colour swatches we have a custom breakpoint that
is heigher than desktop so IE8 never gets those styles.

To fix, we check if $govuk-is-ie8 == true and if true
we set the custom breakpoint to match desktop.
  • Loading branch information
Jani Kraner committed May 19, 2018
1 parent 8b4019d commit a841402
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ $mq-breakpoint-widescreen: 1200px;

$colour-list-breakpoint: 980px;

// for IE8 we need to set that to 'desktop' so media queries get rasterised
// $mq-static-breakpoint is set in Frontend
@if $govuk-is-ie8 == true {
$colour-list-breakpoint: $mq-static-breakpoint;
}


.app-colour-list {
width: 100%;
border-collapse: collapse;
Expand Down

0 comments on commit a841402

Please sign in to comment.