mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
fix: Checkbox indeterminate style (#50083)
This commit is contained in:
parent
7120673495
commit
4ee1cc9a4e
@ -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`,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user