braid-design-system@32.3.0
Minor Changes
-
Box, atoms: Add
borderBrandAccentvariants to available boxShadows (#1274)Add
borderBrandAccentandborderBrandAccentLightto the available boxShadows, combining thebrandAccentandbrandAccentLightborder colours with thestandardborder width token.
Previously,brandAccentwas only available with thelargeborder width.EXAMPLE USAGE:
<Box boxShadow="borderBrandAccent" />; { /* or */ } <Box boxShadow="borderBrandAccentLight" />;
import { atoms } from 'braid-design-system/css'; atoms({ boxShadow: 'borderBrandAccent' }); atoms({ boxShadow: 'borderBrandAccentLight' });
-
useToast: Design uplift with increased page contrast (#1269)
As a means to increase constrast against page content, the design has been updated to be presented on inverted backgrounds based on the color mode.
The design has also be refined to remove the sidebar/keyline (consistent withAlert), while also applying thetoneto the providedmessage. -
Textarea: Add support for disabling built-in spell checker (#1272)
Provide support for disabling the built-in browser spell checker using the native HTML attribute
spellCheck.When highlighting ranges you may choose to turn spell check off to prevent colliding highlights. This can be done be setting
spellChecktofalse.EXAMPLE USAGE:
<Textarea spellCheck={false} />
-
Add support for
cautiontone to form fields (#1271)Provide support for applying a
cautiontone to form fields.
Specifying thistonewill show theIconCautionalongside the providedmessage.EXAMPLE USAGE:
<TextField tone="caution" message="Caution message" />
-
Textarea: Add support for
cautionhighlightRanges (#1272)Providing a
toneofcautionalong with a set ofhighlightRangeswill now apply thecautiontone to the text being highlighted.
To complement this feature, the design has been uplifted to work consistently across both thecriticalandcautiontones.EXAMPLE USAGE:
<Textarea tone="caution" message="Caution message" highlightRanges={...} />
-
Alert: Design uplift (#1269)
Refine the design to use consistent horizontal container inset, aligning content with elements like
Card, as well as simplifying the design by removing the sidebar/keyline (consistent withuseToast).
Patch Changes
-
Button, ButtonLink: Align
ghostborder width with field border width (#1274)Align the border width of
ghostvariants with the border width of fields.
This is the final re-alignment piece to ensure all components use theme scales consistently, improving the ability of Braid themes to deliver cohesive design uplift. -
Stepper: Reduce size of
Stepindicators (#1275)Refine the design of
Stepindicators by reducing their size. -
TooltipRenderer: Remove custom background (#1268)
Use the correct semantic token for the background of tooltips.
While there is no visual change, this is just a clean up to ensure the palette usage remains consistent.