Skip to content

Commit

Permalink
fix: unnecessary z-index on the context menu pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Dec 7, 2022
1 parent 4489aea commit 5a6b2f6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
height: var(--jse-context-menu-pointer-size);
padding: 0;
margin: 0;
z-index: 2;

cursor: pointer;
background: transparent;
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/modes/treemode/JSONNode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
:global(.jse-context-menu-pointer) {
right: -$height-half;
background: var(--jse-selection-background-color);
z-index: 1; // prevent the next line half-overlapping the pointer
}

&.jse-hovered {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@

.jse-insert-area {
&.jse-selected {
z-index: 2;
outline-color: $insert-area-background;
}
}
Expand Down

0 comments on commit 5a6b2f6

Please sign in to comment.