File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -337,9 +337,11 @@ type PolymorphicBoxPropsOrTokens<T extends Components = Components> = Omit<
337
337
TokenizableProps
338
338
> & { [ key in TokenizableProps ] ?: string }
339
339
340
- export type StyleProps < T extends Components = Components > = {
341
- [ key in ComponentPseudoSelectors < T > ] : PolymorphicBoxPropsOrTokens < T >
342
- } & PolymorphicBoxPropsOrTokens < T >
340
+ export type StyleProps < T extends Components = Components > = Omit < PolymorphicBoxPropsOrTokens < T > , 'selectors' > & {
341
+ selectors : Partial < {
342
+ [ key in ComponentPseudoSelectors < T > ] : PolymorphicBoxPropsOrTokens < T >
343
+ } >
344
+ }
343
345
344
346
export type ComponentStyle < T extends Components = Components > = {
345
347
baseStyle ?: Partial < StyleProps < T > >
Original file line number Diff line number Diff line change @@ -34,11 +34,13 @@ const themeOverridesOrAdditions: ThemeOverrides = {
34
34
primary : {
35
35
color : 'white' ,
36
36
backgroundColor : '#fc7ef8' ,
37
- _hover : {
38
- backgroundColor : '#fc03f0'
39
- } ,
40
- _focus : {
41
- boxShadow : '0 0 0 2px #fccafa'
37
+ selectors : {
38
+ _hover : {
39
+ backgroundColor : '#fc03f0'
40
+ } ,
41
+ _focus : {
42
+ boxShadow : '0 0 0 2px #fccafa'
43
+ }
42
44
}
43
45
} ,
44
46
warning : {
You can’t perform that action at this time.
0 commit comments