Skip to content

Commit 47eaad2

Browse files
committed
use nth-of-type instead of nth
1 parent f399185 commit 47eaad2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/mui.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,20 +190,18 @@ function createMuiDsfrTheme(params: { isDark: boolean }): MuiTheme {
190190
"borderWidth": 2
191191
},
192192
"row": {
193-
/*
194-
"&:nth-child(2n)": {
193+
"&:nth-of-type(2n)": {
195194
"backgroundColor": decisions.background.contrast.grey.default,
196195
"&:hover": {
197196
"backgroundColor": decisions.background.contrast.grey.hover
198197
}
199198
},
200-
"&:nth-child(2n+1)": {
199+
"&:nth-of-type(odd)": {
201200
"backgroundColor": decisions.background.alt.grey.default,
202201
"&:hover": {
203202
"backgroundColor": decisions.background.alt.grey.hover
204203
}
205204
}
206-
*/
207205
},
208206
"columnSeparator": {
209207
"display": "none"

0 commit comments

Comments
 (0)