mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +08:00
fix: fix checkbox checked hover style (#37973)
* fix: fix checkbox checked hover style * fix: radio
This commit is contained in:
parent
808bab2cec
commit
2a9bb7c80e
@ -183,6 +183,7 @@ export const genCheckboxStyle: GenerateStyle<CheckboxToken> = token => {
|
||||
[`${checkboxCls}-inner`]: {
|
||||
backgroundColor: token.colorPrimary,
|
||||
borderColor: token.colorPrimary,
|
||||
zIndex: 2,
|
||||
|
||||
'&:after': {
|
||||
opacity: 1,
|
||||
@ -194,6 +195,7 @@ export const genCheckboxStyle: GenerateStyle<CheckboxToken> = token => {
|
||||
// Checked Effect
|
||||
'&:after': {
|
||||
position: 'absolute',
|
||||
zIndex: 1,
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
width: '100%',
|
||||
|
@ -108,8 +108,16 @@ export const genCommonStyle = (token: DerivativeToken, rootPrefixCls: string): C
|
||||
fontSize,
|
||||
boxSizing: 'border-box',
|
||||
|
||||
'&::before, &::after': {
|
||||
boxSizing: 'border-box',
|
||||
},
|
||||
|
||||
[rootPrefixSelector]: {
|
||||
boxSizing: 'border-box',
|
||||
|
||||
'&::before, &::after': {
|
||||
boxSizing: 'border-box',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user