Skip to content

Commit

Permalink
Update phase-banner styles
Browse files Browse the repository at this point in the history
The govuk_frontend_toolkit has outlawed passing in the 'phase' to
the phase-banner components. Colour is now always the same, and it
is now just the text inside the phase tag that changes.

This represents a breaking change for our frontend apps.

Make alpha, beta and discovery colours $govuk-blue, in govuk_frontend_toolkit:
alphagov/govuk_frontend_toolkit#370
  • Loading branch information
pcraig3 committed Feb 10, 2017
1 parent 6281118 commit 49558b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions toolkit/scss/_phase-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@

.phase-banner {
@extend %site-width-container;
@include phase-banner()
}

.phase-banner-beta {
@include phase-banner(beta);
}

.phase-banner-alpha {
@include phase-banner(alpha);
.phase-tag {
@include phase-tag()
}
2 changes: 1 addition & 1 deletion toolkit/templates/phase-banner.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set phase = "alpha" if alpha else "beta" %}
<div class="phase-banner phase-banner-{{ phase }}">
<div class="phase-banner">
<p>
<strong class="phase-tag">{{ phase|upper }}</strong> This is a{% if phase[0] in "aeiouy" %}n{% endif %} {% if phase == "beta" %}<a href="https://www.gov.uk/help/beta">{{ phase }} service</a>{% else %}{{ phase }} service{% endif %} – please send your feedback to <a href="mailto:enquiries@digitalmarketplace.service.gov.uk?subject=Digital%20Marketplace%20feedback" title="Please send feedback to enquiries@digitalmarketplace.service.gov.uk">enquiries@digitalmarketplace.service.gov.uk</a>
</p>
Expand Down

0 comments on commit 49558b8

Please sign in to comment.