Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: refactor selection styling #468

Merged
merged 8 commits into from
Jul 23, 2024
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