Skip to content

Commit

Permalink
List, BulletList: Limit width to 100% of parent (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Aug 10, 2020
1 parent a2dae25 commit 1f8a39c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/early-lamps-talk.md
@@ -0,0 +1,5 @@
---
'braid-design-system': patch
---

**List, BulletList:** Limit width to 100% of parent
5 changes: 4 additions & 1 deletion lib/components/List/List.tsx
Expand Up @@ -118,7 +118,10 @@ export const List = ({
})()}
</Box>
</Text>
<Box paddingLeft={size === 'xsmall' ? 'xsmall' : 'small'}>
<Box
minWidth={0}
paddingLeft={size === 'xsmall' ? 'xsmall' : 'small'}
>
{listItem}
</Box>
</Box>
Expand Down

0 comments on commit 1f8a39c

Please sign in to comment.