File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,28 @@ export const usePropsResolutionWithComponentTheme = (
435
435
flattenSizeStyle
436
436
) ;
437
437
438
+ /*Resolve all the internal used Pseudo Props*/
439
+ const resolvePseudoProps = (
440
+ flatPseudoProp : any /** Props coming from Pseudo inside flattenProps */ ,
441
+ baseStylePseudoProp : any /** Props coming from Pseudo inside defaultStyles(baseStyle) */
442
+ ) => {
443
+ for ( const prop in flatPseudoProp ) {
444
+ baseStylePseudoProp [ prop ] =
445
+ flatPseudoProp [
446
+ prop
447
+ ] ; /* Replace all the similar prop from from internal props */
448
+ }
449
+ return baseStylePseudoProp ;
450
+ } ;
451
+
438
452
for ( const prop in defaultStyles ) {
453
+ if ( prop . startsWith ( '_' ) && flattenProps . hasOwnProperty ( prop ) ) {
454
+ /*Resolve all the internal used Pseudo Props*/
455
+ defaultStyles [ prop ] = resolvePseudoProps (
456
+ flattenProps [ prop ] ,
457
+ defaultStyles [ prop ]
458
+ ) ;
459
+ }
439
460
delete flattenProps [ prop ] ;
440
461
}
441
462
You can’t perform that action at this time.
0 commit comments