More styling tweaks and bug fixes

This commit is contained in:
Pieter Vander Vennet 2022-02-01 19:02:46 +01:00
parent e6ac080019
commit aaaf0b8c36
10 changed files with 113 additions and 25 deletions

View file

@ -143,10 +143,10 @@ export class RadioButton<T> extends InputElement<T> {
block.classList.add(
"m-1",
"border",
"rounded-3xl",
"border-gray-400",
"border-gray-400"
)
}
block.style.borderRadius = "1.5rem"
wrappers.push(block);
form.appendChild(block);
@ -161,10 +161,10 @@ export class RadioButton<T> extends InputElement<T> {
if (input.checked) {
wrappers[i].classList.remove("border-gray-400");
wrappers[i].classList.add("border-black");
wrappers[i].classList.add("border-attention");
} else {
wrappers[i].classList.add("border-gray-400");
wrappers[i].classList.remove("border-black");
wrappers[i].classList.remove("border-attention");
}
}
});