From bfe12945624cf50c22c55b13ed194a7d6ba28327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Thu, 19 Dec 2019 17:48:56 +0800 Subject: [PATCH] 4.0 table (#20350) * chore: Update table style * chore: diff table filter hover color * style lint --- components/table/style/index.less | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/table/style/index.less b/components/table/style/index.less index d72135a00b..29d3babad5 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -7,6 +7,7 @@ @dropdown-prefix-cls: ~'@{ant-prefix}-dropdown'; @table-header-icon-color: #bfbfbf; @table-header-icon-color-hover: darken(@table-header-icon-color, 10%); +@table-header-sort-active-filter-bg: lighten(@table-header-sort-active-bg, 2%); @table-selection-column-width: 60px; @@ -159,6 +160,10 @@ &:hover { background: @table-header-sort-active-bg; + + .@{table-prefix-cls}-filter-trigger-container { + background: @table-header-sort-active-filter-bg; + } } } @@ -226,10 +231,12 @@ flex: none; align-items: stretch; align-self: stretch; + cursor: pointer; transition: background-color 0.3s; &-open, - &:hover { + &:hover, + thead th.@{table-prefix-cls}-column-has-sorters:hover &:hover { background: @table-header-filter-active-bg; } }