Skip to content

Commit 88659b3

Browse files
jany55555hlh
andauthored
fix(radio): remove marginInlineEnd in Radio vertical mode (ant-design#56909)
* fix(radio): 修复Radio组件在垂直模式下会出现多余的右边距 * fix(radio): Fix extra right margin of radio items when Radio.Group is in vertical mode. --------- Co-authored-by: hlh <huanglinhuan@dodjoy.com>
1 parent 37f1bf9 commit 88659b3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

components/radio/style/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ const getGroupRadioStyle: GenerateStyle<RadioToken> = (token) => {
136136
display: 'flex',
137137
flexDirection: 'column',
138138
rowGap: token.marginXS,
139+
140+
[`${componentCls}-wrapper`]: {
141+
marginInlineEnd: 0,
142+
},
139143
},
140144
},
141145
};

0 commit comments

Comments
 (0)