Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 9a4b63c

Browse files
committed
chore: update snapshots
1 parent d51695a commit 9a4b63c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

packages/c-accordion/tests/__snapshots__/c-accordion.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`should render properly 1`] = `
44
<DocumentFragment>
55
<div
6-
class="css-0"
6+
class="chakra-accordion css-0"
77
/>
88
</DocumentFragment>
99
`;

packages/c-button/tests/__snapshots__/c-button-group.test.ts.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@ exports[`should render properly 1`] = `
44
<DocumentFragment>
55
<div
66
class="chakra-button__group css-p4lcqj"
7-
label="button__group"
87
role="group"
98
>
109
<button
1110
class="chakra-button css-kb8k9p"
12-
label="button"
1311
>
1412
Save
1513
</button>
1614
<button
1715
class="chakra-button css-1vxhs68"
18-
label="button"
1916
>
2017
Cancel
2118
</button>

packages/system/src/chakra.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export const chakra: IChakraFactory = (
133133
css,
134134
sx,
135135
apply,
136+
label,
136137
...otherStyles
137138
} = options
138139

@@ -176,7 +177,7 @@ export const chakra: IChakraFactory = (
176177
})
177178

178179
const className = _css(resolvedComponentStyles)
179-
const _componentName = options?.label ? `chakra-${options?.label}` : ''
180+
const _componentName = label ? `chakra-${label}` : ''
180181

181182
return () =>
182183
h(

0 commit comments

Comments
 (0)