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

chore(tokens): 🎨 update tokens #4162

Merged
merged 19 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
746a52b
refactor(token):renamed token for check list according to used naming…
Vandapanda Dec 2, 2024
8b4e81a
refactor(token):renamed colors for check list
Vandapanda Dec 2, 2024
021a922
refactor(token):changed a semantic token in leadcomponent
Vandapanda Dec 3, 2024
62bc981
remove(token):deleted a group thought not to be used in code. Possibl…
Vandapanda Dec 3, 2024
58f7f9c
feat(token):added elevation for inline, toast and snackbar
Vandapanda Dec 3, 2024
e7fdef4
fix(styles): update new toast elevation token
oliverschuerch Dec 3, 2024
627faa9
feat(token): added a spacing token for the spacing of assistive and v…
Vandapanda Dec 4, 2024
124f042
refactor(token): changed Iconsize for validation
Vandapanda Dec 5, 2024
d86d824
Merge remote-tracking branch 'origin/main' into update-tokens
swisspost-bot Dec 5, 2024
ff9cf12
refactor(token):renamed a componenttoken in assist as it was written …
Vandapanda Dec 5, 2024
0b5d90a
Merge branch 'tokens/v2-2024-12' into update-tokens
swisspost-bot Dec 5, 2024
c4fac48
Merge remote-tracking branch 'origin/main' into update-tokens
swisspost-bot Dec 5, 2024
ff763d9
refactor(token):Adjusted Validation tokens
Vandapanda Dec 9, 2024
7b45f6e
Merge branch 'tokens/v2-2024-12' into update-tokens
swisspost-bot Dec 9, 2024
daa9d98
Merge remote-tracking branch 'origin/main' into update-tokens
swisspost-bot Dec 9, 2024
76b8612
Update tokens.json
alizedebray Dec 10, 2024
75b25ad
Merge branch 'main' into update-tokens
alizedebray Dec 10, 2024
1a7c579
temp fix token errors
myrta2302 Dec 10, 2024
cf4cb45
code smell
myrta2302 Dec 10, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ tokens.$default-map: components.$post-breadcrumb;
text-decoration: tokens.get('breadcrumb-link-enabled-text-decoration');

post-icon {
height: tokens.get('breadcrum-icon-size');
width: tokens.get('breadcrum-icon-size');
height: tokens.get('breadcrumb-icon-size');
width: tokens.get('breadcrumb-icon-size');
}

&:hover {
Expand Down
4 changes: 0 additions & 4 deletions packages/styles/src/components/validation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ input[type='range'],
:has(input[type='radio']) {
~ .invalid-feedback,
~ .valid-feedback {
padding: tokens.get('post-validation-group-padding-block-text');

&::before {
margin-top: calc(-1 * #{tokens.get('post-validation-group-padding-block-text')});
margin-bottom: calc(-1 * #{tokens.get('post-validation-group-padding-block-text')});
height: tokens.get('post-validation-group-icon-size');
width: tokens.get('post-validation-group-icon-size');
display: inline-block;
Expand Down
58 changes: 34 additions & 24 deletions packages/tokens/tokensstudio-generated/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -4307,11 +4307,15 @@
"$type": "color",
"$value": "{post.scheme.color.interactive.primary.disabled.fg1}"
}
},
"hint": {
"spacing": {
"block": {
"$type": "spacing",
"$value": "{post.core.dimension.6}"
}
}
}
},
"post-hint-spacing-block": {
"$type": "spacing",
"$value": "{post.core.dimension.6}"
}
},
"Components/Avatar": {
Expand Down Expand Up @@ -4711,9 +4715,7 @@
"$value": "{post.core.text-decoration.none}"
}
}
}
},
"breadcrum": {
},
"icon": {
"size": {
"$type": "sizing",
Expand Down Expand Up @@ -7739,22 +7741,28 @@
"$value": "{post.device.spacing.gap.inline.10}"
}
},
"padding": {
"icon": {
"size": {
"$type": "sizing",
"$value": "{post.device.sizing.interactive.icon.size4}"
},
"block": {
"text": {
"start": {
"$type": "spacing",
"$value": "{post.device.spacing.padding.12}"
"$value": "{post.core.dimension.2}"
},
"end": {
"$type": "spacing",
"$value": "{post.core.dimension.3}"
}
}
},
"icon": {
"size": {
"$type": "sizing",
"$value": "{post.device.sizing.interactive.icon.size}"
},
"padding": {
"$type": "spacing",
"$value": "{post.device.spacing.padding.1}"
"padding": {
"inline": {
"start": {
"$type": "spacing",
"$value": "{post.core.dimension.4}"
}
}
}
},
Expand Down Expand Up @@ -9971,7 +9979,7 @@
"post.assist.font-size": "c42fdefaa61b7c5d6916a6b6768599b19da3fd4d",
"post.assist.enabled-fg": "72f5b4238dee1bf68e93e9731b4fd8f2e5e38fd5",
"post.assist.disabled-fg": "511343125c5a9ce9901570e967e37962ab1eca6d",
"post-hint-spacing-block": "a991d75103776c3686418a2e6004246f2d0a9000",
"post.hint.spacing.block": "3165d98279644e157898945596f89c99ca404b5c",
"post.avatar.size": "fdc1484ed63e645974c9a435ca62dd46b26a84e0",
"post.avatar.enabled-bg": "1863e011a6589c655c1f6ce1b3fa63e4153719e2",
"post.avatar.enabled-fg": "9fbe58313d6bf87fab98be4e81191e79f1a038b0",
Expand Down Expand Up @@ -10038,7 +10046,7 @@
"post.breadcrumb.gap.inline.outer": "a27d40f4b9b6ff82fb67a17af041b2fa748f8052",
"post.breadcrumb.gap.inline.inner": "395509fba5bd7e8b56a54b41135824ef83aa3ebd",
"post.breadcrumb.selected.font-weight": "c26e16ce48b87d25d173a722ccbc4f7c3c438841",
"post.breadcrum.icon.size": "72338131139ad3c76c52523326371d15f5284ac5",
"post.breadcrumb.icon.size": "72338131139ad3c76c52523326371d15f5284ac5",
"post.button.gap.block.1": "3e82d61efc18438a6b93f41164d21274625669f9",
"post.button.gap.block.2": "8a0326da592650c30bcb20142232098e0ad98fa5",
"post.button.gap.inline.switch": "17e19389cbcf9f145dcbbe0f663f31df65206e62",
Expand Down Expand Up @@ -10355,7 +10363,7 @@
"post.input.search.label.empty.padding.inline.end": "86ee6eb34d947957e558ec6f2eff1c74e350412e",
"post.input.search.label.filled.padding.inline.end": "374f2471e81aba44b09a6f6f31f51b47ce87d9a8",
"post.input.search.icon.border-radius": "cd54dafcf43f1524a4759289263baffa23699e17",
"post.search.position.inline.end.icon": "c9cb98cb13f74d863fc6c426b34a9182866eb17f",
"post.search.position.inline.end.icon": "7dec1a6368f3f33341da9c53c8af35b4f649702d",
"post.button-segmented.horizontal.border-radius": "fd01f5b8308c2c2826717c59169509fa33da4431",
"post.button-segmented.vertical.border-radius": "bb62d30e7b32d7c62d6a825888a8248af47f3532",
"post.button-segmented.selected-fg": "23623d928ead25f0bcf0b42baed2bfdf8345daad",
Expand Down Expand Up @@ -10521,6 +10529,7 @@
"post.textarea.position.block.start.validation": "7d3d68f9b92e710e7441d84c31b27639e13e301a",
"post.textarea.assist.font-size": "8fb89a9effda2d25fe148de62b52eb6ddc9a280b",
"post.textarea.validated.padding.inline.end": "82e187d41e38dad89946c46aa1d8875e096accfd",
"post.textarea.placeholder-fg": "b77a1c8e294ec724d8298a7c4c6c965d2c763610",
"post.text-highlighted.bg": "27774fb04cb78f58f13895b833a4851be7e3486b",
"post.text-highlighted.fg": "8416d4e5337654acf592f5345f7c151d3cd63a4d",
"post.text-highlighted.padding.text": "e5e01d5010f1a45ce796d305a526ce01fa5d7a7b",
Expand Down Expand Up @@ -10587,14 +10596,15 @@
"post.toast.color.error-stroke": "3432663173b4389104a12a668043e3681e2faa69",
"post.toast.color.error-icon": "3096bb0553257be18a766df213ba83685ab63040",
"post.validation.group.gap.inline": "a76607434c393d743d38b71824d9d76e533acca2",
"post.validation.group.padding.block.text": "37b3685608b0a7ee4bdc297d80ea55c77856c2ee",
"post.validation.group.icon.size": "ce5d0ae47c1f80a7ea39a6e5b25a00055c450e7d",
"post.validation.group.icon.padding": "4c33e15ce67a9e7398af3f45682774c919629a17",
"post.validation.error": "796bdb2fc917b5948438070371ae60d214216795",
"post.validation.success": "b59a525aa81840396e6310baa880de4a66d23371",
"post.validation.input.padding.block": "4006573d3a03f1b053a844aaf89e14742a3d3646",
"post.validation.input.padding.inline": "8df0e5f5587acbb1f7acb67a97e200e2175d6469",
"post.validation.font-size": "67f550629b478f48c1579f8acb13edceabbaee4f"
"post.validation.font-size": "67f550629b478f48c1579f8acb13edceabbaee4f",
"post.validation.group.padding.inline.start": "37c8364dbc202912a5a557a5f8cc026e1f84a3bf",
"post.validation.group.icon.block.start": "e52e3d301a820f000d2cd339f1fab72a5f09ce81",
"post.validation.group.icon.block.end": "f30710c36d79b96b33c33ad8e67524cc1ae3cd7a"
}
},
{
Expand Down
Loading