Skip to content

Commit

Permalink
fix(theme): wrong color when RadioButtonGroup checked (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetfan authored May 20, 2021
1 parent 9b2d41e commit 5eee0ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/vite/plugin/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ export function configThemePlugin(isBuild: boolean): Plugin[] {
switch (s) {
case '.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon':
return '.ant-steps-item-icon > .ant-steps-icon';
case '.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)':
case '.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover':
case '.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active':
return s;
case '.ant-steps-item-icon > .ant-steps-icon':
return s;
}

return `[data-theme] ${s}`;
},
colorVariables: [...getThemeColors(), ...colors],
Expand Down Expand Up @@ -58,5 +61,5 @@ export function configThemePlugin(isBuild: boolean): Plugin[] {
}),
];

return (plugin as unknown) as Plugin[];
return plugin as unknown as Plugin[];
}

0 comments on commit 5eee0ce

Please sign in to comment.