braid-design-system@31.18.1
·
830 commits
to master
since this release
Patch Changes
-
Button, ButtonLink: Improve alignment of transparent buttons with icons against Text with icons (#1170)
To improve optical balance of a
Buttonwith anicon, the icon container is bled to the left to balance against the larger horizontal inset of astandardbutton.
This alignment correction is now only applied onstandardsized buttons that are not using thetransparentvariant.Isolating this alignment correction enables transparent buttons to better align with other components with
iconslots, for example:<Stack space="small"> <Text icon={<IconSend />}>Text</Text> <Button icon={<IconSend />} variant="transparent" bleed> Button </Button> </Stack>
Icons and text will now be perfectly aligned between Button components and others icon slots with the same text size.