braid-design-system@32.7.0
Minor Changes
-
Drawer, Dialog: Support validation blocking closure of modal (#1318)
To prevent a
DialogorDrawerfrom closing, e.g. due to validation, theonClosefunction can now return false.EXAMPLE USAGE:
<Drawer open={open} onClose={() => { const valid = runValidation(); if (!valid) { return false; } setOpen(false); }} />
Patch Changes
-
TooltipRenderer: Fix arrow overlapping tooltip corner radius (#1316)
Fix for an edge case where the arrow on a small tooltip could the overlap the corner radius of the tooltip.
-
Drawer: Darken backdrop in dark mode (#1316)
Increase the weight of the backdrop in dark mode to ensure the content is suffiently obscured.
-
Drawer: Fix entrance animation from
leftposition (#1316)Apply the entrance animation correctly for a
Drawerusing theleftposition.
Also reduced the horizontal overshoot for the transition for a smoother feel. -
Drawer: Increase space between
titleanddescriptionon tablet (#1316) -
Drawer: Align horizontal gutters with PageBlock (#1316)
Given a
Draweris full width on a mobile device, applying the same horizontal gutter rules asPageBlockmakes sense.
This ensures content on a mobile will have the same available space whether its in the page, or inside aDrawer.