Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 0a3c993

Browse files
committed
feat: only show close button on pinned overlays on hover
The close button obscures the hover content or actions. As a partial fix, this commit makes it so that the close button only appears when the overlay is hovered, so that it is possible to read all of the content.
1 parent 3b6e5b2 commit 0a3c993

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/HoverOverlay.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
align-items: stretch;
1010
z-index: 100;
1111

12-
transition: opacity 100ms ease-in-out;
12+
$animation-duration: 100ms;
13+
transition: opacity $animation-duration ease-in-out;
1314

1415
&__close-button {
1516
position: absolute;
@@ -19,6 +20,11 @@
1920
background: inherit;
2021
z-index: 1;
2122
border: none;
23+
opacity: 0;
24+
transition: opacity $animation-duration ease-in-out;
25+
}
26+
&:hover &__close-button {
27+
opacity: 1;
2228
}
2329

2430
&__row {

0 commit comments

Comments
 (0)