Skip to content

Commit

Permalink
feat: add utrecht.select.line-height token
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Sep 18, 2024
1 parent d9a5161 commit 570ac1e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sharp-parrots-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@utrecht/select-css": minor
---

Add `utrecht.select.line-height` design token.
1 change: 1 addition & 0 deletions components/select/src/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ $utrecht-support-prince-xml: false !default;
); /* harden with `initial` */

inline-size: 100%;
line-height: var(--utrecht-select-line-height, var(--utrecht-form-control-line-height, initial));
min-block-size: var(--utrecht-select-min-block-size, var(--utrecht-pointer-target-min-size, 44px));
min-inline-size: var(--utrecht-pointer-target-min-size, 44px);
max-inline-size: var(--utrecht-select-max-inline-size, var(--utrecht-form-control-max-inline-size));
Expand Down
11 changes: 11 additions & 0 deletions components/select/src/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@
},
"type": "fontWeights"
},
"line-height": {
"$extensions": {
"nl.nldesignsystem.css.property": {
"syntax": "<length>",
"inherits": true
},
"nl.nldesignsystem.fallback": ["utrecht.form-control.line-height"],
"nl.nldesignsystem.figma.supports-token": true
},
"type": "lineHeights"
},
"min-block-size": {
"$extensions": {
"nl.nldesignsystem.css.property": {
Expand Down

0 comments on commit 570ac1e

Please sign in to comment.