Skip to content

Commit

Permalink
Add border to tag for customised colours
Browse files Browse the repository at this point in the history
When a user customises their colours often the background is removed,
by adding a border we ensure that the tag component still keeps it's meaning.
  • Loading branch information
NickColley committed Jul 4, 2018
1 parent 6979369 commit 5b563cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/tag/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

@include govuk-exports("govuk/component/tag") {
.govuk-tag {
@include govuk-font($size: 16, $weight: bold, $line-height: 1.25);
@include govuk-font($size: 16, $weight: bold, $line-height: 1);

display: inline-block;
padding: govuk-spacing(1) 8px 0;
padding: 4px 6px 1px;

border: 2px solid govuk-colour("blue");

color: govuk-colour("white");
background-color: govuk-colour("blue");
Expand All @@ -18,6 +20,7 @@
}

.govuk-tag--inactive {
border-color: govuk-colour("grey-1");
background-color: govuk-colour("grey-1");
}
}

0 comments on commit 5b563cc

Please sign in to comment.