Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: fix Table filter dropdown broken style #39805

Merged
merged 1 commit into from Dec 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里用的也不对。

},

// Icon
Expand Down