You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a 'size' attribute to the chip component with two values:
- 'normal' (default, undefined): 32px height (existing behavior)
- 'small': 24px height using controlSlimHeight token
This is a non-breaking change. Existing chips without a size
attribute continue to render at 32px.
Changes:
- Add ChipSize enum to chip/types.ts
- Add size attribute to Chip class
- Add sizeBehavior utility (mirrors appearanceBehavior pattern)
- Update styles with controlSlimHeight for small variant
- Add unit tests for size attribute
- Update Storybook stories and matrix with size states
- Update Angular directive with size property and tests
description: 'Size of the chip. Use `small` for the 24px version.',
44
+
options: Object.keys(ChipSize),
45
+
control: {type: 'radio'},
46
+
table: {category: apiCategory.attributes}
47
+
},
41
48
removable: {
42
49
name: 'removable',
43
50
description: 'When the `removable` attribute is set, a remove button is displayed on the chip. When the remove button is pressed a `remove` event is dispatched. The client application is responsible for performing the actual removal.',
0 commit comments