Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: creation of new 'size' tokens #500

Merged
merged 3 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions composed-variables/composed-variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
--sbb-size-button-l-min-height: var(--sbb-size-button-l-min-height-zero);

/* Form */
--sbb-size-form-element-s-min-height: var(--sbb-size-form-element-s-min-height-zero);
--sbb-size-form-element-m-min-height: var(--sbb-size-form-element-m-min-height-zero);
--sbb-size-form-element-l-min-height: var(--sbb-size-form-element-l-min-height-zero);

Expand Down Expand Up @@ -124,6 +125,7 @@
--sbb-size-button-l-min-height: var(--sbb-size-button-l-min-height-medium);

/* Form */
--sbb-size-form-element-s-min-height: var(--sbb-size-form-element-s-min-height-medium);
--sbb-size-form-element-m-min-height: var(--sbb-size-form-element-m-min-height-medium);
--sbb-size-form-element-l-min-height: var(--sbb-size-form-element-l-min-height-medium);
}
Expand Down
34 changes: 34 additions & 0 deletions designTokens/size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,40 @@ export const size: DesignTokens = {
},
form: {
element: {
s: {
jeripeierSBB marked this conversation as resolved.
Show resolved Hide resolved
min: {
jeripeierSBB marked this conversation as resolved.
Show resolved Hide resolved
height: {
zero: {
value: 36,
...attributes('form'),
},
micro: {
value: 36,
...attributes('form'),
},
small: {
value: 36,
...attributes('form'),
},
medium: {
value: 40,
...attributes('form'),
},
large: {
value: 40,
...attributes('form'),
},
wide: {
value: 40,
...attributes('form'),
},
ultra: {
value: 40,
...attributes('form'),
},
},
},
},
m: {
min: {
height: {
Expand Down