From 0d4cb5c16a2a8437bdcc56888241376f28e319fe Mon Sep 17 00:00:00 2001 From: Hieu-Thi Luong Date: Wed, 27 Apr 2022 21:10:28 +0900 Subject: [PATCH] Desktop: Fixed color of links within list in Markdown editor (#6447) --- .../gui/NoteEditor/NoteBody/CodeMirror/CodeMirror.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/CodeMirror.tsx b/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/CodeMirror.tsx index 3cb1ad7ac..51cb92f41 100644 --- a/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/CodeMirror.tsx +++ b/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/CodeMirror.tsx @@ -465,6 +465,10 @@ function CodeMirror(props: NoteBodyEditorProps, ref: any) { color: ${theme.color}; } + div.CodeMirror span.cm-variable-2, div.CodeMirror span.cm-variable-3, div.CodeMirror span.cm-keyword { + color: ${theme.color}; + } + div.CodeMirror span.cm-quote { color: ${theme.color}; opacity: ${theme.blockQuoteOpacity}; @@ -479,10 +483,6 @@ function CodeMirror(props: NoteBodyEditorProps, ref: any) { opacity: 0.5; } - div.CodeMirror span.cm-variable-2, div.CodeMirror span.cm-variable-3, div.CodeMirror span.cm-keyword { - color: ${theme.color}; - } - div.CodeMirror span.cm-comment { color: ${theme.codeColor}; }