Skip to content

Build your personal knowledge base with Trilium Notes

fix(autocomplete): highlight the contained note list with the suggestion colors

Elian Doranafb97a40db69
diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.css
index 8eafb53423..e7010c9a98 100644
--- a/apps/client/src/stylesheets/theme-next/base.css
+++ b/apps/client/src/stylesheets/theme-next/base.css
@@ -814,13 +814,6 @@ li.dropdown-item a.dropdown-item-button:focus-visible {
cursor: default;
}
-/* Selected list item */
-.jump-to-note-dialog .aa-suggestions div.aa-cursor,
-.note-detail-empty .aa-suggestions div.aa-cursor {
- background: var(--hover-item-background-color);
- color: var(--hover-item-text-color);
-}
-
/*
* Alert bars
*/
diff --git a/apps/client/src/widgets/react/NoteAutocomplete.css b/apps/client/src/widgets/react/NoteAutocomplete.css
index 52613ba274..49f392aec4 100644
--- a/apps/client/src/widgets/react/NoteAutocomplete.css
+++ b/apps/client/src/widgets/react/NoteAutocomplete.css
@@ -102,8 +102,8 @@ span.aa-dropdown-menu .aa-suggestion {
}
&.aa-cursor {
- color: var(--active-item-text-color);
- background-color: var(--active-item-background-color);
+ color: var(--suggestion-active-text-color);
+ background-color: var(--suggestion-active-background-color);
}
}