Skip to content

Commit

Permalink
fix: selection bar not having the right color when the editor does no…
Browse files Browse the repository at this point in the history
…t have focus
  • Loading branch information
josdejong committed Dec 4, 2023
1 parent 98dfce8 commit c491d97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/components/modes/treemode/JSONNode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
&.jse-selected :global(.jse-collapsed-items),
&.jse-selected-value :global(.jse-collapsed-items) {
background-color: $selection-background-color;
--jse-collapsed-items-background-color: $collapsed-items-selected-background-color;
--jse-collapsed-items-background-color: #{$collapsed-items-selected-background-color};
}

// value selected (part 2)
Expand Down Expand Up @@ -227,8 +227,8 @@
// lighter selection color when the editor doesn't have focus
:global(.jse-main:not(.jse-focus)) {
.jse-json-node {
--jse-selection-background-color: $selection-background-inactive-color;
--jse-context-menu-pointer-background: $context-menu-pointer-hover-background;
--jse-selection-background-color: #{$selection-background-inactive-color};
--jse-context-menu-pointer-background: #{$context-menu-pointer-hover-background};
}
}

Expand Down

0 comments on commit c491d97

Please sign in to comment.