feat: radio dot size (#37452)

This commit is contained in:
MadCcc 2022-09-08 11:43:04 +08:00 committed by GitHub
parent 39d155bfff
commit 42d8d95327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -494,7 +494,7 @@ export default genComponentStyleHook('Radio', token => {
colorPrimary,
marginXS,
controlOutlineWidth,
fontSizeIcon,
paddingXXS,
} = token;
// Radio
@ -503,7 +503,7 @@ export default genComponentStyleHook('Radio', token => {
const radioSize = fontSizeLG;
const radioTop = (Math.round(fontSize * lineHeight) - radioSize) / 2;
const radioDotSize = fontSizeIcon / 2;
const radioDotSize = radioSize - (paddingXXS + controlLineWidth) * 2;
const radioDotColor = colorPrimary;
// Radio buttons