Skip to content

Commit 370ed93

Browse files
authored
fix: extra space for Action menu (#335)
1 parent 1f871fb commit 370ed93

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/components/ActionsMenu/index.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,15 @@ const StyledActionsMenuContainer = styled.div`
7171
&.hack-for-legacy-tests {
7272
position: absolute;
7373
pointer-events: none;
74-
opacity: 0;
75-
visibility: hidden;
76-
height: 0;
77-
width: 0;
74+
width: 1px;
75+
height: 1px;
7876
padding: 0;
77+
margin: -1px;
78+
overflow: hidden;
79+
clip: rect(0, 0, 0, 0);
80+
clip-path: inset(50%);
81+
white-space: nowrap;
82+
border-width: 0;
7983
}
8084
8185
&.visible {

0 commit comments

Comments
 (0)