braid-design-system@32.19.0
Minor Changes
-
PageBlock: Add
smallandfullwidth options (#1504)Add
smallto availablewidthoptions ofPageBlockto support narrower max width for page content.Also introducing
fullas awidthoption to enable full width content, while still maintaining consistent screen gutters.EXAMPLE USAGE:
<PageBlock width="small">...</PageBlock>
-
ContentBlock: Add support for left alignment (#1507)
Introduces horizontal alignment support for
ContentBlock, enabling content to be constrained to a max width and aligned to the left.Useful inside of larger
PageBlockorContentBlockelements when constraining the content for readability or length of form fields.EXAMPLE USAGE:
<ContentBlock align="left">...</ContentBlock>
-
ButtonIcon: Add
formAccenttone (#1508)Introduces support for the
formAccenttone onButtonIcon.The new tone sits alongside the existing
neutraltone, while thesecondarytone is now deprecated and will be removed in a future version (see Migration Guide below).EXAMPLE USAGE:
<ButtonIcon tone="formAccent" icon={<IconAdd />} />
MIGRATION GUIDE:
For consumers of the now deprecated
secondarytone, you can pro-actively migrate away from it by moving thetoneto the icon itself:<ButtonIcon - tone="secondary" - icon={<IconAdd />} + icon={<IconAdd tone="secondary" />}