Use svelte class attribute

This commit is contained in:
Adria Navarro 2023-06-07 15:00:23 +01:00
parent 1bdf62ab41
commit cc52362fe3
1 changed files with 2 additions and 3 deletions

View File

@ -20,11 +20,10 @@
</script>
<label
class="spectrum-Checkbox spectrum-Checkbox--emphasized {sizeClass} {indeterminate
? 'is-indeterminate'
: ''}"
class="spectrum-Checkbox spectrum-Checkbox--emphasized {sizeClass}"
class:is-invalid={!!error}
class:checked={value}
class:is-indeterminate={indeterminate}
>
<input
checked={value}