Skip to content

Commit fbd98e7

Browse files
committed
fix(design-system): BadgeCount fixes\n\n- React: correct large size container classes by setting height to h-5 (was truncated 'h-')\n- React Native test: relax twClassName assertion to .toContain('custom') to account for 'leading-0' prefix\n\nNo other changes.
1 parent d22f29c commit fbd98e7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/design-system-react-native/src/components/BadgeCount/BadgeCount.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe('BadgeCount', () => {
140140
expectedTextProps.fontWeight,
141141
);
142142
// Custom twClassName should be applied
143-
expect(textElement.props.twClassName).toBe('custom');
143+
expect(textElement.props.twClassName).toContain('custom');
144144
});
145145

146146
it('applies additional container style and forwards extra props', () => {

packages/design-system-react/src/components/BadgeCount/BadgeCount.constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ export const TWCLASSMAP_BADGECOUNT_SIZE_CONTAINER: Record<
1616
string
1717
> = {
1818
[BadgeCountSize.Md]: 'min-w-4 h-4 px-1', // min-width 16px, height 14px, padding-horizontal 4
19-
[BadgeCountSize.Lg]: 'min-w-6 h- px-1.5', // min-width 24px, height 20px, padding-horizontal 6
19+
[BadgeCountSize.Lg]: 'min-w-6 h-5 px-1.5', // min-width 24px, height 20px, padding-horizontal 6
2020
};

0 commit comments

Comments
 (0)