Skip to content

Commit 36ebfc0

Browse files
authored
fix: Ensure hotspot has a 24x24 touch target even when surrounded by other interactive elements (#4125)
1 parent 0e97d47 commit 36ebfc0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/annotation-context/annotation/styles.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@
5858
content: '';
5959
position: absolute;
6060
inset: calc(-1 * #{awsui.$space-xxs});
61+
62+
// By default, elements later in the DOM order have a higher precedence.
63+
// This increases the z-index just to cancel out that rule, so that elements
64+
// immediately following the button are also overlapped by this click target.
65+
z-index: 1;
6166
}
6267

6368
&:focus {

0 commit comments

Comments
 (0)