From 484fbb6453cd6856cc65cdca7ed8e9c3d4f566a6 Mon Sep 17 00:00:00 2001 From: Pavithra Kodmad Date: Tue, 21 Oct 2025 16:19:20 +1100 Subject: [PATCH 1/2] Fix actionmenu scrollbar with border radius issue --- .../src/ActionMenu/ActionMenu.module.css | 42 +++++++++++++++++++ packages/react/src/ActionMenu/ActionMenu.tsx | 8 +++- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/packages/react/src/ActionMenu/ActionMenu.module.css b/packages/react/src/ActionMenu/ActionMenu.module.css index 15a2fbd9834..4c9b063d239 100644 --- a/packages/react/src/ActionMenu/ActionMenu.module.css +++ b/packages/react/src/ActionMenu/ActionMenu.module.css @@ -2,4 +2,46 @@ &:where([data-variant='fullscreen']) { padding-top: var(--base-size-36); } + + /* Overflow variants */ + &:where([data-overflow-auto]) { + overflow: auto; + } + + &:where([data-overflow-hidden]) { + overflow: hidden; + } + + &:where([data-overflow-scroll]) { + overflow: scroll; + } + + &:where([data-overflow-visible]) { + overflow: visible; + } + + /* Max-height size tokens (mirror Overlay sizes) */ + &:where([data-max-height-xsmall]) { + max-height: 192px; + } + + &:where([data-max-height-small]) { + max-height: 256px; + } + + &:where([data-max-height-medium]) { + max-height: 320px; + } + + &:where([data-max-height-large]) { + max-height: 432px; + } + + &:where([data-max-height-xlarge]) { + max-height: 600px; + } + + &:where([data-max-height-fit-content]) { + max-height: fit-content; + } } diff --git a/packages/react/src/ActionMenu/ActionMenu.tsx b/packages/react/src/ActionMenu/ActionMenu.tsx index 2041d27f6e4..c2c722cb895 100644 --- a/packages/react/src/ActionMenu/ActionMenu.tsx +++ b/packages/react/src/ActionMenu/ActionMenu.tsx @@ -316,7 +316,13 @@ const Overlay: FCWithSlotMarker> = ({ onPositionChange={onPositionChange} variant={variant} > -
+
Date: Tue, 21 Oct 2025 16:22:01 +1100 Subject: [PATCH 2/2] Update ActionMenu overflow scrollbar description --- .changeset/purple-pigs-check.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/purple-pigs-check.md diff --git a/.changeset/purple-pigs-check.md b/.changeset/purple-pigs-check.md new file mode 100644 index 00000000000..08a4fa2cc92 --- /dev/null +++ b/.changeset/purple-pigs-check.md @@ -0,0 +1,7 @@ +--- +"@primer/react": patch +--- + +Fix: ActionMenu with overflow contains scrollbars within its rounded border + +