Skip to content

Commit

Permalink
feat: optional design tokens to configure button width or height
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Sep 15, 2021
1 parent 9b8e950 commit db34838
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/button/bem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@

.utrecht-button {
background-color: var(--utrecht-button-primary-action-background-color);
block-size: var(--utrecht-button-block-size, auto);
border-radius: var(--utrecht-button-border-radius);
border-width: var(--utrecht-button-border-width);
color: var(--utrecht-button-primary-action-color);
font-family: var(--utrecht-button-font-family, var(--utrecht-document-font-family));
font-size: var(--utrecht-button-font-size, var(--utrecht-document-font-family));
font-weight: var(--utrecht-button-font-weight);
inline-size: var(--utrecht-button-inline-size, auto);
letter-spacing: var(--utrecht-button-letter-spacing);
padding-block-end: var(--utrecht-button-padding-block-end);
padding-block-start: var(--utrecht-button-padding-block-start);
Expand Down
12 changes: 12 additions & 0 deletions components/button/block.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"inherits": true
}
},
"block-size": {
"css": {
"syntax": "<length>",
"inherits": true
}
},
"focus-transform-scale": {
"css": {
"syntax": "<number>",
Expand All @@ -25,6 +31,12 @@
"inherits": true
}
},
"inline-size": {
"css": {
"syntax": "<length>",
"inherits": true
}
},
"letter-spacing": {
"css": {
"syntax": "<length>",
Expand Down

0 comments on commit db34838

Please sign in to comment.