Skip to content

Commit

Permalink
Fix ActionList.Item width for full variant
Browse files Browse the repository at this point in the history
  • Loading branch information
danielguillan committed Jul 13, 2023
1 parent 40cf2e8 commit 6512a3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/plenty-bats-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Fixes the width of the ActionList.Item when the full variant is set
2 changes: 1 addition & 1 deletion src/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
appearance: 'none',
background: 'unset',
border: 'unset',
width: 'calc(100% - 16px)',
width: listVariant === 'inset' ? 'calc(100% - 16px)' : '100%',
fontFamily: 'unset',
textAlign: 'unset',
marginY: 'unset',
Expand Down

0 comments on commit 6512a3c

Please sign in to comment.