Skip to content

Commit

Permalink
Make negative margin match padding added
Browse files Browse the repository at this point in the history
Also add comment to explain
  • Loading branch information
frankieroberto committed May 23, 2023
1 parent 552a49a commit 5439030
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/govuk-frontend/src/govuk/components/tag/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
// These negative margins make sure that the tag component doesn’t increase the
// size of its container. Otherwise, for example, a table row containing a tag
// will be taller than one containing plain text.
margin-top: -3px;
//
// The negative margin added to the top and bottom matches the extra padding added.
margin-top: -2px;
margin-bottom: -3px;

padding-top: 2px;
Expand Down

0 comments on commit 5439030

Please sign in to comment.