Skip to content

Commit 222e643

Browse files
committed
fix stops on radial line being behind the position dragzone
1 parent ae48c41 commit 222e643

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/components/RadialOverlay.svelte

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@
629629
transform: translate(-50%, -50%);
630630
}
631631
632-
.line {
632+
.line {
633633
position: absolute;
634634
inset-block-start: 50%;
635635
inset-inline-start: 50%;
@@ -641,6 +641,7 @@
641641
inline-size: 100%;
642642
background: var(--line-1);
643643
transform: translate(0%, -50%);
644+
z-index: 11; /* ensure the entire line (and its children) stack above the dragzone */
644645
}
645646
646647
.line::after {
@@ -666,7 +667,7 @@
666667
transition: box-shadow .5s var(--ease-3);
667668
--_shadow-size: 0px;
668669
box-shadow: inset 0 0 0 var(--_shadow-size) hsl(0 0% 100% / 25%);
669-
z-index: 1;
670+
z-index: 2; /* keep below stops/hints */
670671
}
671672
672673
.dragzone:hover {
@@ -694,7 +695,7 @@
694695
inset-block-start: 50%;
695696
transform: translate(-50%, -50%);
696697
pointer-events: none;
697-
z-index: 1;
698+
z-index: 1; /* below dragzone and stops */
698699
}
699700
700701
.ghost-stop {
@@ -756,7 +757,7 @@
756757
place-content: center;
757758
place-items: center;
758759
gap: var(--size-2);
759-
z-index: 3; /* ensure stops/hints hover over track/ghost */
760+
z-index: 10; /* ensure stops/hints hover over dragzone and track/ghost */
760761
}
761762
762763
.hint {

0 commit comments

Comments
 (0)