Skip to content

Build your personal knowledge base with Trilium Notes

make the active fancytree selector more specific than the normal color setting

zadamb70699ce1cc6
diff --git a/src/public/app/services/css_class_manager.js b/src/public/app/services/css_class_manager.js
index 6b7c366772..01a5132893 100644
--- a/src/public/app/services/css_class_manager.js
+++ b/src/public/app/services/css_class_manager.js
@@ -14,7 +14,8 @@ function createClassForColor(color) {
const className = `color-${normalizedColorName}`;
if (!registeredClasses.has(className)) {
- $("head").append(`<style>.${className} { color: ${color} !important; }</style>`);
+ // make the active fancytree selector more specific than the normal color setting
+ $("head").append(`<style>.${className}, span.fancytree-active.${className} { color: ${color} !important; }</style>`);
registeredClasses.add(className);
}