Skip to content

Commit 5756c13

Browse files
authored
fix: set default selection color (#1282)
Co-authored-by: 7nik <[email protected]>
1 parent 6b2e603 commit 5756c13

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/repl/src/lib/Editor/codemirror.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119

120120
.cm-selectionBackground {
121121
border-radius: 2px;
122+
background-color: var(--sk-bg-unfocused-selection);
122123
}
123124

124125
.cm-selectionMatch {

packages/site-kit/src/lib/styles/tokens/colours.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
--sk-bg-4: hsl(0, 0%, 95%); /* hover states and highlights */
2323
--sk-bg-accent: var(--sk-fg-accent);
2424
--sk-bg-selection: hsla(204, 100%, 63%, 0.3);
25+
--sk-bg-unfocused-selection: hsla(204, 50%, 63%, 0.2);
2526
--sk-bg-highlight: hsl(60, 100%, 80%);
2627

2728
/* Border color — use this for all borders, except 'active' borders (e.g. current nav) which use `--sk-fg-accent` */

0 commit comments

Comments
 (0)