Add classes the proper way

This commit is contained in:
Cadence Ember 2020-04-12 15:51:29 +12:00
parent fec233fab7
commit 59a922578b
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@
>
<label
:for="id"
:class='(compact ? "compact " : "")+"switch-label"'
class="switch-label"
:class="{compact}"
>
{{ label }}
</label>