Skip to content

Commit 11f92a7

Browse files
committed
fix: fix table stripe style error
1 parent ff66074 commit 11f92a7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.vscode/settings.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"less.validate": false,
44
"scss.validate": false,
55
"editor.codeActionsOnSave": {
6-
"source.fixAll.stylelint": true,
7-
"source.fixAll.eslint": true
6+
"source.fixAll.stylelint": "explicit",
7+
"source.fixAll.eslint": "explicit"
88
},
99
"cSpell.words": [
1010
"stylelint"

style/web/components/table/_index.less

+4-4
Original file line numberDiff line numberDiff line change
@@ -291,27 +291,27 @@
291291
}
292292

293293
&.@{prefix}-table--header-fixed {
294-
> .@{prefix}-table__content > table > tbody tr:nth-of-type(even) {
294+
> .@{prefix}-table__content > table > tbody tr.@{prefix}-table__row-even {
295295
background-color: @table-highlight-bg-color;
296296
}
297297
}
298298

299299
&:not(.@{prefix}-table--header-fixed) {
300-
> .@{prefix}-table__content > table > tbody > tr:nth-of-type(odd):not(.@{prefix}-table__expanded-row) {
300+
> .@{prefix}-table__content > table > tbody > tr.@{prefix}-table__row-odd:not(.@{prefix}-table__expanded-row) {
301301
background-color: @table-highlight-bg-color;
302302
}
303303
}
304304

305305
&.@{prefix}-table--hoverable {
306306

307307
&.@{prefix}-table__header--fixed {
308-
tbody tr:nth-of-type(even):hover {
308+
tbody tr.@{prefix}-table__row-even:hover {
309309
background-color: @table-highlight-bg-color--hover;
310310
}
311311
}
312312

313313
&:not(.@{prefix}-table__header--fixed) {
314-
> .@{prefix}-table__content > table > tbody tr:nth-of-type(odd):hover {
314+
> .@{prefix}-table__content > table > tbody tr.@{prefix}-table__row-odd:hover {
315315
background-color: @table-highlight-bg-color--hover;
316316
}
317317
}

0 commit comments

Comments
 (0)