From 957886a01508ef3d0bcc2eb4c0f6d72bfc80d8fb Mon Sep 17 00:00:00 2001 From: Daniel Guillan Date: Thu, 13 Jul 2023 14:14:01 +0200 Subject: [PATCH 1/2] Fix ActionList.Item width for full variant --- .changeset/plenty-bats-shop.md | 5 +++++ src/ActionList/Item.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/plenty-bats-shop.md diff --git a/.changeset/plenty-bats-shop.md b/.changeset/plenty-bats-shop.md new file mode 100644 index 00000000000..8fb60c7ec35 --- /dev/null +++ b/.changeset/plenty-bats-shop.md @@ -0,0 +1,5 @@ +--- +'@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', From 024cdb564ec03f98ccb1977a5308e98363cf4c92 Mon Sep 17 00:00:00 2001 From: Daniel Guillan Date: Thu, 13 Jul 2023 19:30:59 +0200 Subject: [PATCH 2/2] Update .changeset/plenty-bats-shop.md Co-authored-by: Mike Perrotti --- .changeset/plenty-bats-shop.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.changeset/plenty-bats-shop.md b/.changeset/plenty-bats-shop.md index 8fb60c7ec35..57090b350c0 100644 --- a/.changeset/plenty-bats-shop.md +++ b/.changeset/plenty-bats-shop.md @@ -3,3 +3,5 @@ --- ActionList: Fixes the width of items for the full variant + +