This is an automated email from the ASF dual-hosted git repository.

rfellows pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new f39666da16 [NIFI-13925] update codemirror cursor and matching brackets 
(#9444)
f39666da16 is described below

commit f39666da16c988c58022691d58cefe245a4ff445
Author: Scott Aslan <[email protected]>
AuthorDate: Thu Oct 24 10:52:35 2024 -0600

    [NIFI-13925] update codemirror cursor and matching brackets (#9444)
    
    This closes #9444
---
 .../src/main/frontend/libs/shared/src/assets/styles/_app.scss        | 2 +-
 .../frontend/libs/shared/src/assets/styles/_codemirror-theme.scss    | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/nifi-frontend/src/main/frontend/libs/shared/src/assets/styles/_app.scss 
b/nifi-frontend/src/main/frontend/libs/shared/src/assets/styles/_app.scss
index 9e658a455e..45fec57fcf 100644
--- a/nifi-frontend/src/main/frontend/libs/shared/src/assets/styles/_app.scss
+++ b/nifi-frontend/src/main/frontend/libs/shared/src/assets/styles/_app.scss
@@ -605,7 +605,7 @@
 
     /* overriding 3rd party styles */
 
-    
*:not([class^='mat-']):not([class^='mdc-']):not([class^='resizable-triangle']) {
+    
*:not([class^='mat-']):not([class^='mdc-']):not([class^='resizable-triangle']):not([class^='CodeMirror-cursor'])
 {
         // Tailwind sets a default that doesn't shift with light and dark 
themes
         border-color: $border-color;
     }
diff --git 
a/nifi-frontend/src/main/frontend/libs/shared/src/assets/styles/_codemirror-theme.scss
 
b/nifi-frontend/src/main/frontend/libs/shared/src/assets/styles/_codemirror-theme.scss
index dfd3177f6b..6ee42127c7 100644
--- 
a/nifi-frontend/src/main/frontend/libs/shared/src/assets/styles/_codemirror-theme.scss
+++ 
b/nifi-frontend/src/main/frontend/libs/shared/src/assets/styles/_codemirror-theme.scss
@@ -45,6 +45,7 @@
         neutral,
         map.get(map.get($config, neutral), lighter)
     );
+    $primary-contrast: map.get(map.get($config, primary), contrast);
     $neutral-contrast: map.get(map.get($config, neutral), contrast);
     $border-color: mat.get-theme-color($material-theme, neutral-variant, 
map.get($config, neutral-variant));
     $selected-color: $material-theme-tertiary-palette-variant;
@@ -213,10 +214,8 @@
 
     .cm-s-nifi .CodeMirror-matchingbracket {
         text-decoration: underline;
-        color: $neutral-contrast !important;
+        color: $primary-contrast !important;
         background-color: $material-theme-neutral-palette-default;
-        opacity: 0.5;
-        filter: alpha(opacity=50);
     }
 
     .cm-s-nifi .CodeMirror-nonmatchingbracket {

Reply via email to