Skip to content

Commit ed066f0

Browse files
authored
Bug 1506: Badges narrower than their height break pill shape (#1507)
1 parent fe3dc55 commit ed066f0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/dirty-cats-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@keystar/ui": patch
3+
---
4+
5+
Fix badges below below `24px` breaking the pill shape

design-system/pkg/src/badge/Badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const Badge: ForwardRefExoticComponent<
7171
backgroundColor={bg}
7272
borderRadius="full"
7373
height="element.small"
74-
minWidth={0}
74+
minWidth="element.small"
7575
paddingX="regular"
7676
// layout
7777
alignItems="center"

0 commit comments

Comments
 (0)