diff --git a/.changeset/plenty-bats-shop.md b/.changeset/plenty-bats-shop.md new file mode 100644 index 000000000000..08f917957c22 --- /dev/null +++ b/.changeset/plenty-bats-shop.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +Fixes the width of the ActionList.Item when the full variant is set diff --git a/src/ActionList/Item.tsx b/src/ActionList/Item.tsx index 90ead90ac58d..e22a2d736b51 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',