Releases: seek-oss/braid-design-system
braid-design-system@34.0.4
Patch Changes
-
playroom: Add "layout" and "block" recipes to snippets (#2009)
-
playroom: Add support for frameSettings (#2006)
Introduce new
frameSettingsfor Playroom to configure frame options for specific frames.Settings added:
- Stack Debug: Show highlight overlays of stack spacing to help review spacing and layout.
- Dark Mode: Switch the colour mode to dark mode (only used by pages embedded in native apps currently).
braid-design-system@34.0.3
Patch Changes
-
Textarea: Add support for automatic shrinking height with the
growprop (trueby default). (#2000)Automatically shrink and grow height with content when using the
growprop.
braid-design-system@34.0.2
Patch Changes
@braid-design-system/docs-ui@4.0.1
Patch Changes
- Migrate source code bundling to use
tsdown. (#1971)
braid-design-system@34.0.1
Patch Changes
- MenuRenderer, OverflowMenu: Prevent the document from scrolling when opening the menu with the keyboard (#1952)
braid-design-system@34.0.0
Major Changes
-
Hidden: Remove
screenprop (#1947)Remove the deprecated
screenprop from theHiddencomponent.
For content designed to improve the screen reader experience, please use use theHiddenVisuallycomponent instead.
Alternatively, for content designed to be hidden unconditionally, remove thescreenprop.MIGRATION GUIDE:
- <Hidden screen> + <Hidden>
-
Box, atoms: Remove deprecated
ratingvariable. (#1947)Consumers should use the
brandAccentorneutralvariables instead.MIGRATION GUIDE:
# styles.css.ts import { vars } from 'braid-design-system/css'; export const myStyle = style({ - color: vars.foregroundColor.rating, + color: vars.foregroundColor.brandAccent, });
-
Card: Remove
roundedprop (#1947)The
roundedprop only affected deleted themes such asapacand has no effect on supported themes.MIGRATION GUIDE:
- <Card rounded>...</Card> + <Card>...</Card>
-
Box, atoms: Remove deprecated
outlinevaluenone, andboxShadowvalueoutlineFocus. (#1947)Braid leverages the
outlineproperty directly, managing focus rings of interactive elements as part of its scoped CSS reset.MIGRATION GUIDE:
For styling the focus ring via
Box:- Remove usage of
outline="none"andboxShadow="outlineFocus" - Refer to
focus outlinesfor guidance on leveraging Braid's focus outline styles.
- <Box outline="none" className={styles.customFocusStyles} /> + <Box />
For styling the focus outline of an element based on the focus of another element, see
outlineStyle. - Remove usage of
-
apac: Remove in favour of
seekJobstheme (#1947)The previously deprecated
apactheme has been removed.
Consumers should migrate to theseekJobstheme.MIGRATION GUIDE:
# App.tsx - import apac from 'braid-design-system/themes/apac'; + import seekJobs from 'braid-design-system/themes/seekJobs'; - <BraidProvider theme={apac} ...> + <BraidProvider theme={seekJobs} ...>
-
IconList: Remove deprecated component, in favour of more specific list types:
IconBulletListandIconNumberedList. (#1947)MIGRATION GUIDE:
-<IconList /> +<IconBulletList />
-
Toggle: Remove
bleedYprop (#1947)Remove the deprecated
bleedYprop from theTogglecomponent.
Consumers should remove use of thebleedYprop, and if previously settingbleedYto false, should update their layout accordingly.MIGRATION GUIDE:
- <Toggle bleedY /> + <Toggle />
Patch Changes
- Update
is-mobiledependency (#1945)
@braid-design-system/docs-ui@4.0.0
@braid-design-system/docs-ui@4.0.0
braid-design-system@33.14.0
braid-design-system@33.13.0
Minor Changes
-
Autosuggest: Add support for data attributes on individual suggestions (#1938)
The data attributes are applied to each rendered list item.
EXAMPLE USAGE:
<Autosuggest suggestions={[ { text: 'Apples', data: { testid: 'suggestion-apples' }, }, ]} />
Patch Changes
- ButtonIcon, TooltipRenderer: Close tooltips after clicking the trigger on desktop devices (#1932)
braid-design-system@33.12.4
Patch Changes
-
Autosuggest, MenuRenderer, OverflowMenu, TooltipRenderer: Ensure
TooltipRendereris correctly positioned on Android devices (#1926)Additionally, adjust
TooltipRendererpositioning at screen edges, removing extra edge spacing.
This ensures the tooltip arrow is more closely aligned with the trigger when the trigger is near the edge of the screen.