refactor: prefer class directive over class attribute (#1318)

This commit is contained in:
metonym 2022-05-29 08:16:27 -07:00 committed by GitHub
commit 0801e1d078
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 34 additions and 18 deletions

View file

@ -168,7 +168,8 @@
class:bx--number--light="{light}"
class:bx--number--nolabel="{hideLabel}"
class:bx--number--nosteppers="{hideSteppers}"
class="{size && `bx--number--${size}`}"
class:bx--number--sm="{size === 'sm'}"
class:bx--number--xl="{size === 'xl'}"
>
{#if $$slots.label || label}
<label