Skip to content

Commit 030d098

Browse files
Set selectionMatch to be transparent (#1239)
closes RaspberryPiFoundation/digital-editor-issues#721
1 parent 057cc61 commit 030d098

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1010

1111
- Issue where clicking the tick icon would not save a filename when editing (#1237)
1212

13+
### Changed
14+
15+
- Set selectionMatch to be transpartent so not all instances of a word are highlighted when selected(#1239)
16+
1317
## [0.30.2] - 2025-07-22
1418

1519
### Fixed

src/assets/themes/editorDarkTheme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const editorDarkTheme = EditorView.theme(
2121
backgroundColor: "#144866",
2222
},
2323
".cm-selectionMatch": {
24-
backgroundColor: "rgba(153, 255, 119, 0.2)",
24+
backgroundColor: "transparent",
2525
},
2626
"&.cm-focused .cm-cursor": {
2727
borderLeftColor: "white",

src/assets/themes/editorLightTheme.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ export const editorLightTheme = EditorView.theme(
2222
"border-inline-start": "solid grey",
2323
},
2424
},
25+
".cm-selectionMatch": {
26+
backgroundColor: "transparent",
27+
},
2528
".ͼf": { color: "#AA1111" },
2629
},
2730
{ dark: false },

0 commit comments

Comments
 (0)