Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit a4e7189

Browse files
committed
fix(css-codegen-style.ts): Fixed a bug in 1.2.5 where & was mixed into the output of the &string selector of set
1 parent 287b63a commit a4e7189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_internal/utils/css-codegen-style.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function cssCodeGenStyle<T extends CustomCSSProperties>(object: T, base62
2727
) {
2828
let CSSProp = camelToKebabCase(property.replace('&', ''));
2929
if (property.startsWith('has') || property.startsWith('not') || property.includes('&')) {
30-
CSSProp = camelToKebabCase(property);
30+
CSSProp = camelToKebabCase(property.replace('&', ''));
3131
} else {
3232
CSSProp = pseudo.classes.includes(property) ? `:${CSSProp}` : `::${CSSProp}`;
3333
}

0 commit comments

Comments
 (0)