Skip to content

Commit 7cf24a9

Browse files
committed
Fix contrast of mark highlights in dark mode
1 parent 14d8c09 commit 7cf24a9

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
.lsp-signature-help pre code {
1+
.lsp-signature-help code {
22
font-size: var(--jp-code-font-size);
33
}
4+
5+
.lsp-signature-help code > mark {
6+
color: var(--jp-lsp-signature-mark-color);
7+
background: var(--jp-lsp-signature-mark-background);
8+
}
9+
10+
.lsp-signature-help code > mark > span {
11+
/* override syntax highlight colour to ensure contrast */
12+
color: var(--jp-lsp-signature-mark-color) !important;
13+
}

packages/jupyterlab-lsp/style/variables/base.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@
1818
/* hover */
1919
--jp-editor-mirror-lsp-hover-decoration-style: dotted;
2020
--jp-editor-mirror-lsp-hover-decoration-color: var(--jp-brand-color1);
21+
/* signature */
22+
--jp-lsp-signature-mark-color: black;
23+
--jp-lsp-signature-mark-background: yellow;
2124
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
body[data-jp-theme-light='false'] .cm-s-jupyter {
22
--jp-editor-mirror-lsp-highlight-background-color: rgba(151, 173, 255, 0.3);
33
}
4+
5+
body[data-jp-theme-light='false'] {
6+
--jp-lsp-signature-mark-color: white;
7+
--jp-lsp-signature-mark-background: #607e01;
8+
}

0 commit comments

Comments
 (0)