Browse Source
fix(theme): wrong color when RadioButtonGroup checked (#626)
pull/634/head
Netfan
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
2 deletions
-
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[]; |
|
|
|
} |
|
|
|
|