Просмотр исходного кода

Merge pull request #2852 from overleaf/cmg-highlight-references-keyboard

Fix highlights on reference search not working on key down

GitOrigin-RevId: ab123e40e99b66389a725476645a7abb881776ad
Eric Mc Sween 6 лет назад
Родитель
Сommit
67874f1f53
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      services/web/frontend/stylesheets/app/editor.less

+ 3 - 1
services/web/frontend/stylesheets/app/editor.less

@@ -620,7 +620,6 @@ CodeMirror
     }
     .search-result-hit {
       &:hover {
-        color: @brand-success;
         cursor: pointer;
       }
       border-bottom: 1px solid #ddd;
@@ -629,6 +628,9 @@ CodeMirror
         border-bottom: 1px solid transparent;
       }
       border-left: 4px solid transparent;
+      &.selected-search-result-hit {
+        color: @brand-success;
+      }
       .hit-title {
         font-size: 1.3em;
         font-style: italic;