Commit 5eee0ceb6e1e949e63d51cd0d9647cf8094f378c
Committed by
GitHub
1 parent
9b2d41ea
fix(theme): wrong color when RadioButtonGroup checked (#626)
Showing
1 changed file
with
5 additions
and
2 deletions
build/vite/plugin/theme.ts
@@ -27,10 +27,13 @@ export function configThemePlugin(isBuild: boolean): Plugin[] { | @@ -27,10 +27,13 @@ export function configThemePlugin(isBuild: boolean): Plugin[] { | ||
27 | switch (s) { | 27 | switch (s) { |
28 | case '.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon': | 28 | case '.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon': |
29 | return '.ant-steps-item-icon > .ant-steps-icon'; | 29 | return '.ant-steps-item-icon > .ant-steps-icon'; |
30 | + case '.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)': | ||
31 | + case '.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover': | ||
32 | + case '.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active': | ||
33 | + return s; | ||
30 | case '.ant-steps-item-icon > .ant-steps-icon': | 34 | case '.ant-steps-item-icon > .ant-steps-icon': |
31 | return s; | 35 | return s; |
32 | } | 36 | } |
33 | - | ||
34 | return `[data-theme] ${s}`; | 37 | return `[data-theme] ${s}`; |
35 | }, | 38 | }, |
36 | colorVariables: [...getThemeColors(), ...colors], | 39 | colorVariables: [...getThemeColors(), ...colors], |
@@ -58,5 +61,5 @@ export function configThemePlugin(isBuild: boolean): Plugin[] { | @@ -58,5 +61,5 @@ export function configThemePlugin(isBuild: boolean): Plugin[] { | ||
58 | }), | 61 | }), |
59 | ]; | 62 | ]; |
60 | 63 | ||
61 | - return (plugin as unknown) as Plugin[]; | 64 | + return plugin as unknown as Plugin[]; |
62 | } | 65 | } |