Skip to content

Commit

Permalink
Update tag component with "in consultation" modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
ediblecode committed Dec 8, 2017
1 parent deb86a5 commit 2060938
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions server/views/components/tag.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
<li>Tag <span class="tag">Tag</span></li>
<li>New <span class="tag tag--new">New</span></li>
<li>Updated <span class="tag tag--updated">Updated</span></li>
<li>In consultation <span class="tag tag--consultation">In consultation</span></li>
<li>Alpha <span class="tag tag--alpha">Alpha</span></li>
<li>Beta <span class="tag tag--beta">Beta</span></li>
<li>Live <span class="tag tag--live">Live</span></li>
<li>Impact <span class="tag tag--impact">Impact</span></li>
<li>Impact alpha <span class="tag tag--impact tag--alpha">Alpha</span></li>
</ul>

</div>
Expand Down
14 changes: 10 additions & 4 deletions src/components/tag/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
/// @group components
////

/// A tag for labelling
/// Tag component. Used for labelling items in lists
/// and also used within alpha/beta phase banners.
///
/// BEM modifiers:
/// - `--impact` Larger tag, used for impact
Expand All @@ -11,9 +12,10 @@
/// - `--live` Live
/// - `--new` New
/// - `--updated` Updated
/// - `--consultation` In consultation
/// @since 0.3.1
.tag {
@include font-size(-2);
@include font-size(-1);
background-color: $colour-panel-inverse;
border-radius: em($spacing-xx-small);
color: $colour-text-inverse;
Expand Down Expand Up @@ -52,10 +54,14 @@
}

&--new {
background: $colour-nice-purple;
background: $colour-guidance-new;
}

&--updated {
background: $colour-nice-blue-3;
background: $colour-guidance-updated;
}

&--consultation {
background: $colour-guidance-consultation;
}
}

0 comments on commit 2060938

Please sign in to comment.