Skip to content

Commit

Permalink
style: fix Table filter dropdown broken style (#39805)
Browse files Browse the repository at this point in the history
close #39799
  • Loading branch information
afc163 committed Dec 26, 2022
1 parent 9fbf80a commit e44f11b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/table/style/filter.tsx
Expand Up @@ -22,13 +22,13 @@ const genFilterStyle: GenerateStyle<TableToken> = (token) => {
motionDurationSlow,
colorTextDescription,
colorPrimary,
colorPrimaryActive,
tableHeaderFilterActiveBg,
colorTextDisabled,
tableFilterDropdownBg,
tableFilterDropdownHeight,
controlItemBgHover,
boxShadow,
controlItemBgActive,
boxShadowSecondary,
} = token;
const dropdownPrefixCls = `${antCls}-dropdown`;
const tableFilterDropdownPrefixCls = `${componentCls}-filter-dropdown`;
Expand Down Expand Up @@ -76,7 +76,7 @@ const genFilterStyle: GenerateStyle<TableToken> = (token) => {
minWidth: tableFilterDropdownWidth,
backgroundColor: tableFilterDropdownBg,
borderRadius,
boxShadow,
boxShadow: boxShadowSecondary,

// Reset menu
[`${dropdownPrefixCls}-menu`]: {
Expand Down Expand Up @@ -111,7 +111,7 @@ const genFilterStyle: GenerateStyle<TableToken> = (token) => {

[`${treePrefixCls}-treenode-checkbox-checked ${treePrefixCls}-node-content-wrapper`]: {
'&, &:hover': {
backgroundColor: colorPrimaryActive,
backgroundColor: controlItemBgActive,
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion components/tree/style/index.tsx
Expand Up @@ -283,7 +283,7 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
},

[`&${treeCls}-node-selected`]: {
backgroundColor: token.controlOutline,
backgroundColor: token.controlItemBgActive,
},

// Icon
Expand Down

0 comments on commit e44f11b

Please sign in to comment.