From e44f11b0f4e47b76f501423e20e91ea83346aeff Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 26 Dec 2022 11:35:29 +0800 Subject: [PATCH] style: fix Table filter dropdown broken style (#39805) close #39799 --- components/table/style/filter.tsx | 8 ++++---- components/tree/style/index.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/table/style/filter.tsx b/components/table/style/filter.tsx index 7ce1097d523f..f3e00a383b29 100644 --- a/components/table/style/filter.tsx +++ b/components/table/style/filter.tsx @@ -22,13 +22,13 @@ const genFilterStyle: GenerateStyle = (token) => { motionDurationSlow, colorTextDescription, colorPrimary, - colorPrimaryActive, tableHeaderFilterActiveBg, colorTextDisabled, tableFilterDropdownBg, tableFilterDropdownHeight, controlItemBgHover, - boxShadow, + controlItemBgActive, + boxShadowSecondary, } = token; const dropdownPrefixCls = `${antCls}-dropdown`; const tableFilterDropdownPrefixCls = `${componentCls}-filter-dropdown`; @@ -76,7 +76,7 @@ const genFilterStyle: GenerateStyle = (token) => { minWidth: tableFilterDropdownWidth, backgroundColor: tableFilterDropdownBg, borderRadius, - boxShadow, + boxShadow: boxShadowSecondary, // Reset menu [`${dropdownPrefixCls}-menu`]: { @@ -111,7 +111,7 @@ const genFilterStyle: GenerateStyle = (token) => { [`${treePrefixCls}-treenode-checkbox-checked ${treePrefixCls}-node-content-wrapper`]: { '&, &:hover': { - backgroundColor: colorPrimaryActive, + backgroundColor: controlItemBgActive, }, }, }, diff --git a/components/tree/style/index.tsx b/components/tree/style/index.tsx index df0a92bca33a..5e50d89d8451 100644 --- a/components/tree/style/index.tsx +++ b/components/tree/style/index.tsx @@ -283,7 +283,7 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject => }, [`&${treeCls}-node-selected`]: { - backgroundColor: token.controlOutline, + backgroundColor: token.controlItemBgActive, }, // Icon