braid-design-system@32.2.0
Minor Changes
-
Box, atoms, vars: Add
smallto border radius scale (#1253)Extends the border radius scale to include
smallas a step belowstandard.
This addition is to support an upcoming design uplift that requires greater fidelity in the scale.
Note, the new value is also available as a responsive property.EXAMPLE USAGE:
<Box borderRadius="small" />; { /* Or responsively: */ } <Box borderRadius={{ mobile: 'small', tablet: 'standard' }} />;
import { atoms } from 'braid-design-system/css'; atoms({ borderRadius: 'small' });
import { vars } from 'braid-design-system/css'; const radius = vars.borderRadius.small;
-
theme: Add support for defining line heights with lineGap (#1267)
Provide support for themes to define their typographic line heights via
lineGap.
This allows us to reason about the white space between wrapping lines of text in the same way we think aboutStackspacing.For a visual preview of this mental model head over to the Capsize website.
-
Add
xxxlargeto the space scale (#1262)Extends the range of the space scale to include
xxxlarge.
This addition is to support an upcoming design uplift that requires greater fidelity in the scale.
Note, the new value is also available as a responsive property.EXAMPLE USAGE:
<Stack space="xxxlarge">...</Stack>; { /* Or responsively: */ } <Stack space={{ mobile: 'large', tablet: 'xxxlarge' }}>...</Stack>;
import { atoms } from 'braid-design-system/css'; atoms({ paddingY: 'xxxlarge' });
import { vars } from 'braid-design-system/css'; const space = vars.space.xxxlarge;
Patch Changes
-
theme: Add support for webfonts beyond Google Fonts (#1255)
Previously the
webFonton the theme was thefamilyNameand was being used to construct a link tag to a Google Fonts stylesheet and provide to consumers via a runtime token.
To enable fonts beyond Google Fonts, we are changingwebFontto be a URL.This does not impact existing themes (as there are no themes currently with a web font), and the contract of the runtime token (a constructed link tag) remains unchanged.
-
MenuRenderer: Hide overflow on menu (#1264)
Fixes a bug where the selection/highlight for a
MenuItemcould extend outside of the menu itself. -
Badge: Adjust height to support different typographic scales (#1257)
Adjusts the height of
Badgeto be driven by the capHeight ofxsmalltext plus vertical padding, rather thanxsmallline height.
This enables different typographic scales across themes, while ensuring theBadgeheight is relative. -
RadioItem, Toggle: Use formAccent border when selected (#1251)
Switch to using the
formAccentborder colour, rather than thefieldborder color, when in the selected state (e.g.checkedforRadioItem,onforToggle). -
Fix error reading
standardof undefined (#1256)The use of dynamic property access left some styles exposed to being marked as unused and tree shaken away.
Refactoring these styles to be explicitly referenced to ensure this will not be the case.
-
TooltipRenderer: Refine padding to complement radius scale (#1263)
Removes the custom padding on tooltips in favour of using the space scale.
Previously, a custom value was used to complement the over sized radius which has now be reduced. -
Button, ButtonLink: Improve support for different typographic scales (#1259)
Ensure the height of a
smallsizedButtonis not reliant on the text line height.This enables different typographic scales across themes, while ensuring the
Buttonheight is relative. -
Alert, Card, useToast: Decouple keyline width from space scale (#1266)
Previously the keyline width on the left determined its width using the space scale.
Re-aligning this to use the grid unit to enable themes with larger space scales. -
Improve consistency of border radius usage across components (#1253)
Over time, individual components have reached for a larger radius in the scale, rather than increasing the scale at a theme level. This resulted in inconsistent use across the system, preventing uplift of the scale.
Re-aligning all components to use the scale consistently enables themes to apply very different radius scales — enabling an upcoming design uplift theme.
-
Dialog, Drawer: Reduce space between title and description (#1265)
Reducing the space between
titleanddescriptiontosmallto improve association of the header block content