fix: Checkbox indeterminate style (#50083)

This commit is contained in:
afc163 2024-07-26 11:50:24 +08:00 committed by GitHub
parent 7120673495
commit 4ee1cc9a4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,8 +189,8 @@ export const genCheckboxStyle: GenerateStyle<CheckboxToken> = (token) => {
'&-indeterminate': {
// Wrapper > Checkbox > inner
[`${checkboxCls}-inner`]: {
backgroundColor: token.colorBgContainer,
borderColor: token.colorBorder,
backgroundColor: `${token.colorBgContainer} !important`,
borderColor: `${token.colorBorder} !important`,
'&:after': {
top: '50%',
@ -204,6 +204,12 @@ export const genCheckboxStyle: GenerateStyle<CheckboxToken> = (token) => {
content: '""',
},
},
// https://github.com/ant-design/ant-design/issues/50074
[`&:hover ${checkboxCls}-inner`]: {
backgroundColor: `${token.colorBgContainer} !important`,
borderColor: `${token.colorPrimary} !important`,
},
},
},
},