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)