lepszy ux przyciskow
This commit is contained in:
1 parent
fe213d4acd
commit
5fe052648d
1 file changed
+2
-2
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user