Skip to content

Commit e8c39dc

Browse files
committed
add a more specific token size to tokenValueMap for the themed test
1 parent d8f8ff4 commit e8c39dc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: packages/calcite-components/src/custom-theme.stories.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const kitchenSink = (args: Record<string, string>, useTestValues = false) =>
153153
${chips} ${pagination} ${slider}
154154
</div>
155155
<div class="demo-column">
156-
${tabs} ${tabsBordered} ${label} ${link} ${list} ${loader} ${calciteSwitch} ${avatarIcon} ${avatarInitials}
156+
${tabs} ${tabsBordered} ${label} ${link} ${list} ${calciteSwitch} ${avatarIcon} ${avatarInitials}
157157
${avatarThumbnail} ${progress} ${handle} ${graph} ${textArea} ${popover} ${tile} ${tooltip} ${comboboxItem}
158158
${selectedComboboxItem}
159159
</div>
@@ -169,7 +169,7 @@ const kitchenSink = (args: Record<string, string>, useTestValues = false) =>
169169
</div>
170170
<div class="demo-row">
171171
<div class="demo-column">${fab}</div>
172-
<div class="demo-column">${fabLoading}</div>
172+
<div>${fabLoading} ${loader}</div>
173173
</div>
174174
<div class="demo-row">
175175
<div class="demo-column">${inputMessage}</div>

Diff for: packages/calcite-components/src/tests/utils/cssTokenValues.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
*/
88
export function getTokenValue(token: string): string {
99
const tokenValueMap = {
10-
spacing: "42px",
10+
spacing$: "42px",
1111
// granular patterns for the same token must be listed first to match correctly
1212
background$: "rgb(252, 244, 52)",
1313
"text-color$": "rgb(239, 118, 39)",
1414
"border-color$": "rgb(156, 89, 209)",
1515
"background-color$": "rgb(252, 244, 52)",
1616
"icon-color-end$": "rgb(213, 156, 74)",
1717
"icon-color-start$": "rgb(98, 213, 180)",
18+
"loader-size$": "12px",
1819
color$: "rgb(0, 191, 255)",
1920
hover$: "rgb(255, 105, 180)",
2021
pressed$: "rgb(44, 44, 44)",

0 commit comments

Comments
 (0)