Przeglądaj źródła

Avoid highlighting the focused tracked change (#26681)

GitOrigin-RevId: fcc47f9d23ae870e781bb0f772e2604e630cf292
Alf Eaton 1 rok temu
rodzic
commit
d8d53f76ca

+ 3 - 8
services/web/frontend/js/features/source-editor/extensions/ranges.ts

@@ -397,6 +397,9 @@ const trackChangesTheme = EditorView.baseTheme({
     {
       backgroundColor: 'rgba(194, 93, 11, 0.15)',
     },
+  '.ol-cm-change-focus .ol-cm-change': {
+    backgroundColor: 'transparent',
+  },
   '.ol-cm-change': {
     padding: 'var(--half-leading, 0) 0',
   },
@@ -422,12 +425,4 @@ const trackChangesTheme = EditorView.baseTheme({
     borderLeft: '3px solid #c5060b',
     marginLeft: '-2px',
   },
-  '&light .ol-cm-change-d-focus': {
-    borderLeft: '3px solid #B83A33',
-    marginLeft: '-2px',
-  },
-  '&dark .ol-cm-change-d-focus': {
-    borderLeft: '3px solid #B83A33',
-    marginLeft: '-2px',
-  },
 })