Przeglądaj źródła

Fix Vim command panel text contrast (#31985)

Apply themed foreground color to .cm-vim-panel so the Vim command input inherits a readable color in mixed overall/editor theme combinations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
GitOrigin-RevId: d31b09e64fc49fce551eee7ecead0d215aa206bc
Alf Eaton 7 miesięcy temu
rodzic
commit
b5606cdecb

+ 3 - 0
services/web/frontend/js/features/source-editor/extensions/theme.ts

@@ -168,6 +168,9 @@ const baseTheme = EditorView.baseTheme({
   '.cm-diagnostic:last-of-type .ol-cm-diagnostic-actions': {
     marginBottom: '4px',
   },
+  '.cm-vim-panel': {
+    color: 'var(--content-primary-themed)',
+  },
   '.cm-vim-panel input': {
     color: 'inherit',
   },