Skip to content

Commit

Permalink
chore: refactor selection styling (#468)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
Some of the class names related to selection highlighting are moved/changed.
  • Loading branch information
josdejong authored Jul 23, 2024
1 parent 222af37 commit 0b934e3
Show file tree
Hide file tree
Showing 25 changed files with 487 additions and 500 deletions.
5 changes: 4 additions & 1 deletion src/lib/components/JSONEditor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
display: flex;
flex-direction: row;

&.jse-focus {
// lighter selection color when the editor doesn't have focus
&:not(.jse-focus) {
--jse-selection-background-color: #{$selection-background-inactive-color};
--jse-context-menu-pointer-background: #{$context-menu-pointer-hover-background};
}
}
Loading

0 comments on commit 0b934e3

Please sign in to comment.