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

This commit is contained in:
zadam 2023-02-27 21:01:25 +01:00
parent 7be9db8b84
commit b70699ce1c

View File

@ -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);
}