diff --git a/components/style/themes/dark.less b/components/style/themes/dark.less index f11cb04ccb..00ec8c7bdd 100644 --- a/components/style/themes/dark.less +++ b/components/style/themes/dark.less @@ -314,6 +314,7 @@ @table-header-sort-bg: #262626; @table-header-filter-active-bg: #434343; @table-header-sort-active-bg: #303030; +@table-fixed-header-sort-active-bg: #222; @table-filter-btns-bg: @popover-background; @table-expanded-row-bg: @table-header-bg; @table-filter-dropdown-bg: @popover-background; diff --git a/components/style/themes/default.less b/components/style/themes/default.less index dfaa27ce21..d0f56312dd 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -615,6 +615,8 @@ // Sorter // Legacy: `table-header-sort-active-bg` is used for hover not real active @table-header-sort-active-bg: rgba(0, 0, 0, 0.04); +@table-fixed-header-sort-active-bg: hsv(0, 0, 96%); + // Filter @table-header-filter-active-bg: rgba(0, 0, 0, 0.04); @table-filter-btns-bg: inherit; diff --git a/components/table/style/index.less b/components/table/style/index.less index 942b9bc5e8..20a6c5621e 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -229,7 +229,7 @@ // https://github.com/ant-design/ant-design/issues/30969 &.@{table-prefix-cls}-cell-fix-left:hover, &.@{table-prefix-cls}-cell-fix-right:hover { - background: lighten(@black, 96%); + background: @table-fixed-header-sort-active-bg; } } @@ -643,7 +643,9 @@ &-holder { position: sticky; z-index: @table-sticky-zindex; + background: @component-background; } + &-scroll { position: sticky; bottom: 0;