Преглед изворни кода

Merge pull request #23442 from overleaf/dp-table-label-bug

Use css variable to set insert table label color

GitOrigin-RevId: f99de70c470ca15927ee7ad38d004f94365519ac
Liangjun Song пре 1 година
родитељ
комит
4ab827bf0f

+ 1 - 3
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',