]> BookStack Code Mirror - bookstack/blobdiff - resources/js/services/util.js
Adjusted/improved some color setting wording
[bookstack] / resources / js / services / util.js
index 1a56ebf6ce8595a29cab4f48fbd9422f9a9649a2..238f8b1d88c7b4d1f2be0d684a9f816be9461949 100644 (file)
@@ -34,7 +34,7 @@ export function scrollAndHighlightElement(element) {
     if (!element) return;
     element.scrollIntoView({behavior: 'smooth'});
 
-    const color = document.getElementById('custom-styles').getAttribute('data-color-light');
+    const color = getComputedStyle(document.body).getPropertyValue('--color-primary-light');
     const initColor = window.getComputedStyle(element).getPropertyValue('background-color');
     element.style.backgroundColor = color;
     setTimeout(() => {