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

Commit 620e1b1

Browse files
committed
fix(css-codegen-sheet.ts): bugfix Fix to output even when value is 0
1 parent e5550be commit 620e1b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function cssCodeGenSheet(object: ClassesObjectType, base62Hash?: string,
4242
const CSSProp = camelToKebabCase(property);
4343
const applyValue = typeof value === 'number' ? value + 'px' : value;
4444
// If the media function contains a directly class selector Remove normal bug selector.
45-
value.length >= 2 ? (cssRule += `${bigIndent ? ' ' : ' '}${CSSProp}: ${applyValue};\n`) : '';
45+
property.length >= 2 ? (cssRule += `${bigIndent ? ' ' : ' '}${CSSProp}: ${applyValue};\n`) : '';
4646
} else if (isPseudoOrMediaClass) {
4747
if (isClassInc) colon = ':';
4848
if (isElementInc) colon = '::';

0 commit comments

Comments
 (0)