Releases: seek-oss/braid-design-system
@braid-design-system/[email protected]
Patch Changes
-
Update Crackle CLI dependency (#1480)
-
MenuButton: Improve virtual touch target positioning for narrow elements (#1493)
To maintain accessibility for smaller interactive elements, Braid uses a virtual touch target to maintain the minimum hit area.
This change ensures that the virtual element is always centered to the visual target, in particular when the width of the visual target is narrower than the minimum hit area.
[email protected]
Minor Changes
-
Update semantic icon assets. (#1481)
IconCritical
: Move from circle to diamond outline. Increase the visual distinction fromIconInfo
.
IconLanguage
: Move from globe to characters. Better represents the concept of language. Previous asset available asIconGlobe
.MIGRATION GUIDE
As the above are updates to semantics icons, consumers are unaffected if their usage follows the icon's semantic intent.
For those choosing the icon based on its visual appearance, please review the usage and consider decoupling from the semantic system icon for safer upgrades. -
Add new icons to the library (#1481)
Patch Changes
- Update Capsize dependencies (#1477)
[email protected]
[email protected]
Patch Changes
-
Text, Heading: Fix
maxLines
cropping of decending characters (#1451)Fixes a bug when using -webkit-box, where the descender on the last line of text could be cropped based on the combination of line height and font size.
[email protected]
Patch Changes
-
Tab: Remove cropping of the icon slot (#1447)
Previously the
icon
slot on aTab
was cropped on the left to improve alignment with the active tab indicator.
For most icons in aTab
, this was subtle polish, but for others it had the undesirable side effect of clipping the side of the icon.Removing the cropping until we have a better solution for trimming whitespace around icons.
-
Badge: Allow
Badge
to take arrays of values (#1443)Previously,
Badge
only accepted astring
as children, to prevent the use of other components inside aBadge
.However, when a variable is included with text inside the
Badge
, the children property is interpreted as an array. This prevents a very reasonable use case from being allowed:<Badge>{jobs.length} Jobs</Badge> // Error: Type '{ children: string[]; }' is not assignable to type 'BadgeProps'.
This change allows
Badge
to accept a string, number, or array thereof. -
Fix circular dependencies (#1444)
[email protected]
Minor Changes
-
IconSocialX: Add new icon (#1438)
Add the new
IconSocialX
component to the suite of social icons, enabling teams to migrate across fromIconSocialTwitter
which has now been marked as deprecated.EXAMPLE USAGE:
<IconSocialX />
MIGRATION GUIDE:
Teams should migrate fromIconSocialTwitter
toIconSocialX
at their earliest convenience. TheIconSocialTwitter
component will be removed in a future release.-<IconSocialTwitter /> +<IconSocialX />
-
IconSort: Add new icon (#1438)
EXAMPLE USAGE:
<IconSort />
Patch Changes
[email protected]
Patch Changes
- Update
react-focus-lock
to avoid build warnings in Rollup and Vite (#1433)
[email protected]
Minor Changes
-
Rating: Add
weight
support (#1430)Provide a
weight
prop to customise the weight of the text rating alongside the stars.EXAMPLE USAGE:
<Rating rating={3} weight="strong" />
@braid-design-system/[email protected]
Minor Changes
- Add optional
logoHref
prop toHeaderNavigation
, which allows you to customise the route when clicking theLogo
. (#1435)
@braid-design-system/[email protected]
Minor Changes
- Add
HeaderNavigation
component, used for showing site Logo, theme picker, and displaying theMenuButton
component on smaller screens. (#1429)