File tree 1 file changed +6
-2
lines changed
packages/pigment-css-react/src/processors
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -607,7 +607,7 @@ export class StyledProcessor extends BaseProcessor {
607
607
themeImportIdentifier ?: string ,
608
608
) {
609
609
const { themeArgs = { } } = this . options as IOptions ;
610
- const styleObj = typeof styleObjOrFn === 'function' ? styleObjOrFn ( themeArgs ) : styleObjOrFn ;
610
+ let styleObj = typeof styleObjOrFn === 'function' ? styleObjOrFn ( themeArgs ) : styleObjOrFn ;
611
611
if ( ! styleObj ) {
612
612
return '' ;
613
613
}
@@ -619,7 +619,11 @@ export class StyledProcessor extends BaseProcessor {
619
619
} ) ) ,
620
620
) ;
621
621
}
622
- delete styleObj . variants ;
622
+ if ( styleObj . isProcessed ) {
623
+ styleObj = styleObj . style ;
624
+ } else {
625
+ delete styleObj . variants ;
626
+ }
623
627
const res = cssFnValueToVariable ( {
624
628
styleObj,
625
629
expressionValue : styleArg ,
You can’t perform that action at this time.
0 commit comments