Skip to content

Commit

Permalink
Add the environment indicator
Browse files Browse the repository at this point in the history
This adds the environment indicator (staging, integration, development)
to the header. From user research we've seen that it might prevent
confusion, especially because we currently show the tag in all
interfaces.
  • Loading branch information
tijmenb committed Oct 2, 2018
1 parent 01d27bc commit 454a4a0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Expand Up @@ -14,3 +14,36 @@
.gem-c-layout-header--test .govuk-header__container {
border-bottom-color: govuk-colour("grey-1");
}

.govuk-header__logo {
white-space: nowrap;
}

.govuk-header__product-name {
display: none;

@include govuk-media-query($from: tablet) {
display: inline-block;
}
}

.gem-c-environment-tag {
padding: 2px 5px 0;
margin-left: 3px;
vertical-align: middle;
@include govuk-font($size: 14, $weight: "bold");
}

.gem-c-environment-tag--production {
background-color: govuk-colour("bright-red");
}

.gem-c-environment-tag--development {
background-color: govuk-colour("grey-1");
}

.gem-c-environment-tag--staging,
.gem-c-environment-tag--integration {
background-color: govuk-colour("yellow");
color: govuk-colour("black");
}
Expand Up @@ -21,6 +21,10 @@
<span class="govuk-header__product-name">
Publishing
</span>

<span class="gem-c-environment-tag govuk-tag gem-c-environment-tag--<%= environment %>">
<%= environment %>
</span>
</a>

</div><div class="govuk-header__content">
Expand Down

0 comments on commit 454a4a0

Please sign in to comment.