(tps) add option to hide text

This commit is contained in:
Julien Calixte
2023-07-09 00:07:10 +02:00
parent e67541a64b
commit faa475cf8c
2 changed files with 12 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ if (size === "small") {
const focusElements = params.getAll("focus")
if (focusElements.length >= 0) {
if (focusElements.length > 0) {
const focusables = document.querySelectorAll(".focusable")
focusables.forEach((focusable) => {
@@ -34,3 +34,10 @@ if (focusElements.length >= 0) {
}
})
}
const textHide = params.get("text")
if (textHide === "hide") {
const focusables = document.querySelectorAll(".focusable")
focusables.forEach((focusable) => focusable.classList.add("text-hide"))
}

View File

@@ -46,6 +46,10 @@ li {
background-color: var(--background-color-no-focus);
}
.text-hide {
color: var(--background-color);
}
.customer-satisfaction-roof {
display: flex;
flex-direction: column;