fix(component): center button's icon vertically (#7775)

close AF-1211
This commit is contained in:
CatsJuice
2024-08-07 09:31:23 +00:00
parent d968cfe425
commit c8f4766ceb

View File

@@ -198,6 +198,8 @@ export const icon = style({
// 2. width/height is set to `1em` // 2. width/height is set to `1em`
fontSize: iconSizeVar, fontSize: iconSizeVar,
color: iconColorVar, color: iconColorVar,
display: 'flex',
alignItems: 'center',
}); });
globalStyle(`${icon} > svg`, { globalStyle(`${icon} > svg`, {
width: '100%', width: '100%',