Skip to content

Commit f78c5ce

Browse files
refactor(Colors.stories): update labels for semantic tokens
1 parent 1ca99d2 commit f78c5ce

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/@chakra-ui/stories/Colors.stories.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export const SemanticScheme: StoryObj = {
120120
attention: ["neutral", "outline"],
121121
error: ["neutral", "outline"],
122122
}
123+
123124
return (
124125
<Flex direction="column" gap="16">
125126
{tokenNames.map((tokenName) => {
@@ -130,12 +131,12 @@ export const SemanticScheme: StoryObj = {
130131
const tokenObj = semanticTokenColors[tokenName]
131132

132133
const filteredTokenObj =
133-
"base" in tokenObj
134-
? Object.keys(semanticTokens["colors"][tokenName]).filter(
135-
(key) => !currentDeprecatedTokens.includes(key)
136-
)
134+
"base" in tokenObj
135+
? Object.keys(semanticTokens["colors"][tokenName]).filter(
136+
(key) => !currentDeprecatedTokens.includes(key)
137+
)
137138
: undefined
138-
139+
139140
return (
140141
<Flex key={tokenName} direction="column" gap="4">
141142
<Heading>{capitalize(tokenName)}</Heading>
@@ -179,6 +180,6 @@ const SemanticColorBlock = ({
179180
size="20"
180181
bg={tokenName === nestedKey ? tokenName : `${tokenName}.${nestedKey}`}
181182
/>
182-
<Text>{nestedKey}</Text>
183+
<Text>{tokenName}.{nestedKey}</Text>
183184
</Flex>
184185
)

0 commit comments

Comments
 (0)