From 4ab827bf0ff422bd705a3f8f7adfeac0a9e222cb Mon Sep 17 00:00:00 2001 From: Liangjun Song <146005915+adai26@users.noreply.github.com> Date: Fri, 7 Feb 2025 11:42:18 +0000 Subject: [PATCH] Merge pull request #23442 from overleaf/dp-table-label-bug Use css variable to set insert table label color GitOrigin-RevId: f99de70c470ca15927ee7ad38d004f94365519ac --- .../source-editor/extensions/toolbar/toolbar-panel.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/web/frontend/js/features/source-editor/extensions/toolbar/toolbar-panel.ts b/services/web/frontend/js/features/source-editor/extensions/toolbar/toolbar-panel.ts index 6c5cd1379a..f4a6dbd96a 100644 --- a/services/web/frontend/js/features/source-editor/extensions/toolbar/toolbar-panel.ts +++ b/services/web/frontend/js/features/source-editor/extensions/toolbar/toolbar-panel.ts @@ -249,9 +249,6 @@ const toolbarTheme = EditorView.theme({ }, }, }, - '&.overall-theme-dark .ol-cm-toolbar-table-grid-popover': { - color: '#fff', - }, '&.overall-theme-dark .ol-cm-toolbar-table-grid': { '& td.active': { outlineColor: 'white', @@ -288,6 +285,7 @@ const toolbarTheme = EditorView.theme({ borderRadius: '4px', backgroundColor: 'var(--editor-toolbar-bg)', pointerEvents: 'all', + color: 'var(--toolbar-btn-color)', }, '.ol-cm-toolbar-button-menu-popover-unstyled': { maxWidth: 'unset',