@@ -98,12 +98,18 @@ export const useHoverActionStyles = (isEditMode: boolean, showBorder?: boolean)
98
98
99
99
border-radius : ${ euiTheme . border . radius . medium } ;
100
100
border : var (--internalBorderStyle );
101
+ border-width : ${ euiTheme . border . width
102
+ . thin } ; /* Prevents the element from resizing when dragged by keeping the border width constant (overriding the default change from 1px to 2px) */
103
+ box-shadow : var (
104
+ --hoverActionsSingleWrapperBoxShadowStyle
105
+ ); /* Simulates a 2px border without affecting layout by using a box-shadow */
101
106
background-color : ${ euiTheme . colors . backgroundBasePlain } ;
102
107
grid-template-columns : max-content;
103
108
104
109
& > * {
105
110
// undo certain styles on all children so that parent takes precedence
106
111
border : none !important ;
112
+ box-shadow : none !important ;
107
113
padding : 0px !important ;
108
114
border-radius : unset !important ;
109
115
background-color : transparent !important ;
@@ -131,6 +137,11 @@ export const useHoverActionStyles = (isEditMode: boolean, showBorder?: boolean)
131
137
pointer-events : all; // re-enable pointer events for non-breakpoint children
132
138
background-color : ${ euiTheme . colors . backgroundBasePlain } ;
133
139
border : var (--internalBorderStyle );
140
+ border-width : ${ euiTheme . border . width
141
+ . thin } ; /* Prevents the element from resizing when dragged by keeping the border width constant (overriding the default change from 1px to 2px) */
142
+ box-shadow : var (
143
+ --hoverActionsBoxShadowStyle
144
+ ); /* Simulates a 2px 3-side border without affecting layout by using a box-shadow */
134
145
border-bottom : 0px ;
135
146
padding : var (--paddingAroundAction );
136
147
padding-bottom : 0px ;
0 commit comments