Skip to content

Commit

Permalink
chore: Adds pseudo element around the annotation trigger
Browse files Browse the repository at this point in the history
This reverts commit 89612ae.
  • Loading branch information
orangevolon committed Feb 6, 2025
1 parent 5779bdd commit dc12288
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/annotation-context/annotation/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,19 @@
padding-inline: 0;
cursor: pointer;
scroll-margin: var(#{custom-props.$contentScrollMargin}, 40px 0 0 0);
position: relative;

// These dimensions match the dimensions of the contained SVG icon.
inline-size: 16px;
block-size: 16px;

// Extends the clickable area beyond the actual size of the button
&:before {
content: '';
position: absolute;
inset: calc(-1 * #{awsui.$space-xxs});
}

&:focus {
outline: none;
}
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
}

.inlineWrapper {
margin-inline-start: awsui.$space-xxs;
margin-inline: awsui.$space-xxs;
}

0 comments on commit dc12288

Please sign in to comment.