From c1ee2de52b18563a4e868c0171cc2f85ffe3e2b4 Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Tue, 13 Feb 2024 18:23:55 +0700 Subject: [PATCH] Fixed codemirror hint background color in dark mode (#19687) fixes DES-9 --- apps/admin-x-design-system/src/global/form/CodeEditorView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/admin-x-design-system/src/global/form/CodeEditorView.tsx b/apps/admin-x-design-system/src/global/form/CodeEditorView.tsx index c61bd98c03..fbcfdbe6c8 100644 --- a/apps/admin-x-design-system/src/global/form/CodeEditorView.tsx +++ b/apps/admin-x-design-system/src/global/form/CodeEditorView.tsx @@ -27,7 +27,8 @@ const codeMirrorClasses = [ '[&_.cm-gutters]:bg-grey-75 dark:[&_.cm-gutters]:bg-grey-950', '[&_.cm-gutters]:text-grey-600 dark:[&_.cm-gutters]:text-grey-500', '[&_.cm-gutters]:border-grey-500 dark:[&_.cm-gutters]:border-grey-800', - '[&_.cm-cursor]:border-grey-900 dark:[&_.cm-cursor]:border-grey-75' + '[&_.cm-cursor]:border-grey-900 dark:[&_.cm-cursor]:border-grey-75', + 'dark:[&_.cm-tooltip-autocomplete.cm-tooltip_ul_li:not([aria-selected])]:bg-grey-975' ].join(' '); // Meant to be imported asynchronously to avoid including CodeMirror in the main bundle