Skip to content

Commit a243df6

Browse files
author
Kubit
committed
improve getStyles utils
1 parent dc4370f commit a243df6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/getStyles/getStyles.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ export const getPseudoStyles = (
588588

589589
return css`
590590
${pseudoKey} {
591-
${isAfterOrBefore && `content: '${content}'`};
591+
${isAfterOrBefore && content !== undefined && `content: '${content}'`};
592592
${getGenericStyles(styles)};
593593
${getTypographyStyles(styles)};
594594
}
@@ -604,7 +604,6 @@ const getPseudoElementOrClassKeys = (styles?: CommonStyleType): CSSProp => {
604604
const afterKey = '&::after';
605605
const beforeKey = '&::before';
606606
const backdropKey = '&::backdrop';
607-
const placeholderKey = '&::placeholder';
608607
const passwordRevealButtonKey = '&::-ms-reveal';
609608
const webkitInnerSpinButtonKey = '&::-webkit-inner-spin-button';
610609
const webkitOuterSpinButtonKey = '&::-webkit-outer-spin-button';

0 commit comments

Comments
 (0)