From 5fe052648df1e1f5588e0197e3e8072c31e7e59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 18 Sep 2025 22:30:05 +0200 Subject: [PATCH] lepszy ux przyciskow --- static/js/chart_controls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/chart_controls.js b/static/js/chart_controls.js index c27b2db..5be7f91 100644 --- a/static/js/chart_controls.js +++ b/static/js/chart_controls.js @@ -60,7 +60,7 @@ document.addEventListener("DOMContentLoaded", function () { // ——— Podział na kategorie ——— toggleCategory?.addEventListener("click", function () { - const active = this.classList.contains("btn-outline-light"); + const active = this.classList.contains("btn-outline-success"); if (active) { this.classList.remove("btn-outline-success"); this.classList.add("btn-outline-light"); @@ -68,7 +68,7 @@ document.addEventListener("DOMContentLoaded", function () { this.textContent = "Przełącz na kategorie"; window.setCategorySplit(false); } else { - this.classList.add("btn-outline-success"); + this.classList.add("btn-outline-primary"); this.classList.remove("btn-outline-light"); this.setAttribute("aria-pressed", "true"); this.textContent = "Przełącz na sumy";