diff --git a/components/table/table.css b/components/table/table.css index f4f0aecbb11..ad2426c7e31 100644 --- a/components/table/table.css +++ b/components/table/table.css @@ -42,11 +42,11 @@ padding-right: calc(unit * 4); } - &:nth-child(1) { + &:first-child { min-width: 297px; } - &:nth-child(1):only-child { + &:first-child:only-child { width: initial; max-width: none; } @@ -172,6 +172,7 @@ border-top-style: none; } + /* stylelint-disable-next-line selector-max-specificity */ &.rowSelected:not(.rowFocused) + .rowSelected:not(.rowFocused) .cell { border-top-color: dirty-blue-color; } @@ -215,12 +216,12 @@ padding-right: calc(unit * 4); } - &:nth-child(1) { + &:first-child { min-width: 297px; max-width: 617px; } - &:nth-child(1):only-child { + &:first-child:only-child { width: initial; max-width: none; } diff --git a/stylelint.config.js b/stylelint.config.js index fd013e12e6c..7ffd870046a 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -1,6 +1,8 @@ module.exports = { extends: '@jetbrains/stylelint-config', rules: { - 'selector-max-specificity': '0,3,0' + 'selector-max-specificity': ['0,3,0', { + ignoreSelectors: [':global', ':local'] + }] } };