braid-design-system@32.16.1
Patch Changes
-
Tab: Remove cropping of the icon slot (#1447)
Previously the
iconslot on aTabwas 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
Badgeto take arrays of values (#1443)Previously,
Badgeonly accepted astringas 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
Badgeto accept a string, number, or array thereof. -
Fix circular dependencies (#1444)