Skip to content

Commit

Permalink
Merge pull request alphagov#1276 from alphagov/fix-ie8-banner
Browse files Browse the repository at this point in the history
Fix review app banner for IE8
  • Loading branch information
hannalaakso authored Apr 17, 2019
2 parents ba5fc63 + 90bd34f commit ae3b267
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
1 change: 1 addition & 0 deletions app/assets/scss/app-ie8.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import "../../../src/all-ie8";
@import "partials/app";
@import "partials/banner";
27 changes: 15 additions & 12 deletions app/assets/scss/partials/_banner.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
.app-banner {
font-family: sans-serif;
font-size: 2rem;
line-height: 1.5;
overflow: hidden;
padding-bottom: govuk-spacing(6);
padding-top: govuk-spacing(6);
padding-bottom: govuk-spacing(6);
overflow: hidden;
@include govuk-font($size: 36, $line-height: 1.5)
font-family: sans-serif;

.app-banner__button {
margin-bottom: 0;
Expand All @@ -15,22 +14,26 @@
font-size: inherit;
}

.govuk-link:not(:focus) {
color: inherit;
.govuk-link {
color: govuk-colour("white");
}

.govuk-link:focus {
color: $govuk-text-colour;
}
}

.app-banner--warning {
background: govuk-colour('red');
color: govuk-colour('white');
color: govuk-colour("white");
background: govuk-colour("red");

.app-banner__button,
.app-banner__button:active,
.app-banner__button:hover,
.app-banner__button:focus {
background: govuk-colour('white');
box-shadow: 0 2px 0 $govuk-text-colour;
color: $govuk-text-colour;
margin-bottom: 0;
color: $govuk-text-colour;
background: govuk-colour("white");
box-shadow: 0 2px 0 $govuk-text-colour;
}
}

0 comments on commit ae3b267

Please sign in to comment.