Skip to content

Commit

Permalink
feat: new design tokens for form-field-description
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Sep 26, 2021
1 parent bb28c22 commit 0294576
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/form-field-description/bem.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import clsx from 'clsx';

export const FormFieldDescription = ({ id = null, innerHTML = '', status = null }) =>
`<div id="${id}" class="${clsx(
`<div${id ? ` id="${id}"` : ''} class="${clsx(
'utrecht-form-field-description',
'utrecht-form-field-description--distanced',
status === 'valid' && 'utrecht-form-field-description--valid',
Expand Down
2 changes: 2 additions & 0 deletions components/form-field-description/bem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
*/

.utrecht-form-field-description {
color: var(--utrecht-form-field-description-color);
font-family: var(--utrecht-document-font-family, inherit);
font-size: var(--utrecht-form-field-description-font-size, inherit);
font-style: var(--utrecht-form-field-description-font-style);
}

.utrecht-form-field-description--distanced {
Expand Down
18 changes: 18 additions & 0 deletions components/form-field-description/block.tokens.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
{
"utrecht": {
"form-field-description": {
"color": {
"css": {
"syntax": "<color>",
"inherits": true
}
},
"font-family": {
"css": {
"syntax": "*",
"inherits": true
}
},
"font-size": {
"css": {
"syntax": "<length>",
"inherits": true
}
},
"font-style": {
"css": {
"syntax": "italic",
"inherits": true
}
},
"margin-block-start": {
"css": {
"syntax": "<length>",
Expand Down

0 comments on commit 0294576

Please sign in to comment.