From 5eee0ceb6e1e949e63d51cd0d9647cf8094f378c Mon Sep 17 00:00:00 2001 From: Netfan Date: Thu, 20 May 2021 22:51:02 +0800 Subject: [PATCH] fix(theme): wrong color when RadioButtonGroup checked (#626) --- build/vite/plugin/theme.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build/vite/plugin/theme.ts b/build/vite/plugin/theme.ts index 6b92fc33..62cfee72 100644 --- a/build/vite/plugin/theme.ts +++ b/build/vite/plugin/theme.ts @@ -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], @@ -58,5 +61,5 @@ export function configThemePlugin(isBuild: boolean): Plugin[] { }), ]; - return (plugin as unknown) as Plugin[]; + return plugin as unknown as Plugin[]; }