From 370ed93903502c3ea2b928b7ae4c52732557e6a6 Mon Sep 17 00:00:00 2001 From: Sho Mukai <55069683+shomukai@users.noreply.github.com> Date: Fri, 6 Sep 2024 09:44:58 +1000 Subject: [PATCH] fix: extra space for Action menu (#335) --- lib/components/ActionsMenu/index.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/components/ActionsMenu/index.js b/lib/components/ActionsMenu/index.js index 90e8f76a..18efa0c0 100644 --- a/lib/components/ActionsMenu/index.js +++ b/lib/components/ActionsMenu/index.js @@ -71,11 +71,15 @@ const StyledActionsMenuContainer = styled.div` &.hack-for-legacy-tests { position: absolute; pointer-events: none; - opacity: 0; - visibility: hidden; - height: 0; - width: 0; + width: 1px; + height: 1px; padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + clip-path: inset(50%); + white-space: nowrap; + border-width: 0; } &.visible {