Skip to content

Commit

Permalink
Merge pull request #3731 from alphagov/remove-tag-first-letter-capita…
Browse files Browse the repository at this point in the history
…lise

Remove the first letter modifier from the tag component
  • Loading branch information
owenatgov authored Jun 2, 2023
2 parents f4eea59 + 01d2dd0 commit f9c18c3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/govuk/components/tag/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@
}
}

// Previously the whole tag was transformed to UPPERCASE. We’ve since decided to switch
// to title case to improve readability. The first letter is uppercased to ease the transition,
// as the text may be all lowercase within the HTML itself.
//
// 'capitalize' is used instead of 'uppercase' as a workaround for a spacing bug in Firefox.
.govuk-tag::first-letter {
text-transform: capitalize;
}

.govuk-tag--grey {
color: govuk-shade(govuk-colour("dark-grey"), 50%);
background-color: govuk-tint(govuk-colour("dark-grey"), 85%);
Expand Down

0 comments on commit f9c18c3

Please sign in to comment.