mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-10 11:03:19 +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`]: {
|
[`${checkboxCls}-inner`]: {
|
||||||
backgroundColor: token.colorPrimary,
|
backgroundColor: token.colorPrimary,
|
||||||
borderColor: token.colorPrimary,
|
borderColor: token.colorPrimary,
|
||||||
|
zIndex: 2,
|
||||||
|
|
||||||
'&:after': {
|
'&:after': {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
@ -194,6 +195,7 @@ export const genCheckboxStyle: GenerateStyle<CheckboxToken> = token => {
|
|||||||
// Checked Effect
|
// Checked Effect
|
||||||
'&:after': {
|
'&:after': {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
|
zIndex: 1,
|
||||||
top: 0,
|
top: 0,
|
||||||
insetInlineStart: 0,
|
insetInlineStart: 0,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
@ -108,8 +108,16 @@ export const genCommonStyle = (token: DerivativeToken, rootPrefixCls: string): C
|
|||||||
fontSize,
|
fontSize,
|
||||||
boxSizing: 'border-box',
|
boxSizing: 'border-box',
|
||||||
|
|
||||||
|
'&::before, &::after': {
|
||||||
|
boxSizing: 'border-box',
|
||||||
|
},
|
||||||
|
|
||||||
[rootPrefixSelector]: {
|
[rootPrefixSelector]: {
|
||||||
boxSizing: 'border-box',
|
boxSizing: 'border-box',
|
||||||
|
|
||||||
|
'&::before, &::after': {
|
||||||
|
boxSizing: 'border-box',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user