mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
fix: radio and checkbox box-sizing (#37529)
This commit is contained in:
parent
83447e5b2c
commit
02f41204e7
@ -95,6 +95,7 @@ export const genCheckboxStyle: GenerateStyle<CheckboxToken> = token => {
|
||||
|
||||
// Wrapper > Checkbox > inner
|
||||
[`${checkboxCls}-inner`]: {
|
||||
boxSizing: 'border-box',
|
||||
position: 'relative',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
@ -109,6 +110,7 @@ export const genCheckboxStyle: GenerateStyle<CheckboxToken> = token => {
|
||||
transition: `all ${token.motionDurationFast}`,
|
||||
|
||||
'&:after': {
|
||||
boxSizing: 'border-box',
|
||||
position: 'absolute',
|
||||
top: '50%',
|
||||
insetInlineStart: '21.5%',
|
||||
|
@ -155,6 +155,7 @@ const getRadioBasicStyle: GenerateStyle<RadioToken> = token => {
|
||||
|
||||
[`${componentCls}-inner`]: {
|
||||
'&::after': {
|
||||
boxSizing: 'border-box',
|
||||
position: 'absolute',
|
||||
insetBlockStart: '50%',
|
||||
insetInlineStart: '50%',
|
||||
@ -173,6 +174,7 @@ const getRadioBasicStyle: GenerateStyle<RadioToken> = token => {
|
||||
content: '""',
|
||||
},
|
||||
|
||||
boxSizing: 'border-box',
|
||||
position: 'relative',
|
||||
insetBlockStart: 0,
|
||||
insetInlineStart: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user