From ad1967a645069e4feab4a5b53a74ab9bea91c976 Mon Sep 17 00:00:00 2001 From: zz <2418184580@qq.com> Date: Fri, 5 Aug 2022 00:30:36 +0800 Subject: [PATCH] fix(components): [table] fix selection style (#9179) --- packages/theme-chalk/src/table.scss | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/packages/theme-chalk/src/table.scss b/packages/theme-chalk/src/table.scss index 12c69c5e82..c25199991a 100644 --- a/packages/theme-chalk/src/table.scss +++ b/packages/theme-chalk/src/table.scss @@ -211,16 +211,8 @@ user-select: none; background-color: getCssVar('table-header-bg-color'); - > .cell { - display: inline-block; - box-sizing: border-box; - position: relative; - vertical-align: middle; - width: 100%; - - &.highlight { - color: getCssVar('color-primary'); - } + > .cell.highlight { + color: getCssVar('color-primary'); } &.required > div::before { @@ -412,6 +404,11 @@ @include e((header-wrapper, body-wrapper)) { .#{$namespace}-table-column--selection { + > .cell { + display: inline-flex; + align-items: center; + height: 23px; + } .#{$namespace}-checkbox { height: unset; }