diff --git a/.changeset/plenty-bats-shop.md b/.changeset/plenty-bats-shop.md new file mode 100644 index 00000000000..57090b350c0 --- /dev/null +++ b/.changeset/plenty-bats-shop.md @@ -0,0 +1,7 @@ +--- +'@primer/react': patch +--- + +ActionList: Fixes the width of items for the full variant + + diff --git a/src/ActionList/Item.tsx b/src/ActionList/Item.tsx index 90ead90ac58..e22a2d736b5 100644 --- a/src/ActionList/Item.tsx +++ b/src/ActionList/Item.tsx @@ -103,7 +103,7 @@ export const Item = React.forwardRef( appearance: 'none', background: 'unset', border: 'unset', - width: 'calc(100% - 16px)', + width: listVariant === 'inset' ? 'calc(100% - 16px)' : '100%', fontFamily: 'unset', textAlign: 'unset', marginY: 'unset',