Skip to content

Commit

Permalink
feat: line-height token for badges
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Sep 26, 2021
1 parent 377e050 commit f871341
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/badge/_bem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
font-size: var(--utrecht-badge-font-size, inherit);
font-style: normal; /* no inheritance */
font-weight: var(--utrecht-badge-font-weight, bold); /* no inheritance */
line-height: var(--utrecht-badge-line-height);
padding-block-end: var(--utrecht-badge-padding-block, 0.5ex);
padding-block-start: var(--utrecht-badge-padding-block, 0.5ex);
padding-inline-end: var(--utrecht-badge-padding-inline, 0.5ch);
Expand Down
6 changes: 6 additions & 0 deletions components/badge/block.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
"inherits": true
}
},
"line-height": {
"css": {
"syntax": "<length>",
"inherits": true
}
},
"padding-block": {
"comment": "Default block padding for badge components",
"css": {
Expand Down

0 comments on commit f871341

Please sign in to comment.