Skip to content

Commit 0a89c2b

Browse files
authored
fix pseudo-state button styling in theming docs (#1635)
1 parent e13b9b4 commit 0a89c2b

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

docs/documentation/introduction/theming.mdx

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,17 @@ function CustomButtonExample() {
4444
paddingY: 8,
4545
borderRadius: 5,
4646
backgroundColor: 'indianred',
47-
_hover: {
48-
backgroundColor: 'firebrick',
49-
},
50-
_active: {
51-
backgroundColor: 'darkred',
52-
},
53-
_focus: {
54-
boxShadow: '0 0 0 2px lightcoral',
55-
},
47+
selectors: {
48+
_hover: {
49+
backgroundColor: 'firebrick',
50+
},
51+
_active: {
52+
backgroundColor: 'darkred',
53+
},
54+
_focus: {
55+
boxShadow: '0 0 0 2px lightcoral',
56+
},
57+
}
5658
},
5759
},
5860
},
@@ -82,15 +84,17 @@ function CustomAppearancesExample() {
8284
paddingY: 8,
8385
borderRadius: 5,
8486
backgroundColor: 'indianred',
85-
_hover: {
86-
backgroundColor: 'firebrick',
87-
},
88-
_active: {
89-
backgroundColor: 'darkred',
90-
},
91-
_focus: {
92-
boxShadow: '0 0 0 2px lightcoral',
93-
},
87+
selectors: {
88+
_hover: {
89+
backgroundColor: 'firebrick',
90+
},
91+
_active: {
92+
backgroundColor: 'darkred',
93+
},
94+
_focus: {
95+
boxShadow: '0 0 0 2px lightcoral',
96+
},
97+
}
9498
},
9599
},
96100
},

0 commit comments

Comments
 (0)