refactor(checkbox): make classes reactive

This commit is contained in:
Eric Liu 2019-12-29 18:52:20 -08:00
commit 60d9258d0b
4 changed files with 29 additions and 25 deletions

View file

@ -4,10 +4,14 @@
export let style = undefined;
import { cx } from '../../lib';
const _class = cx('--form-item', '--checkbox-wrapper', className);
</script>
<div on:click on:mouseover on:mouseenter on:mouseleave class={_class} {style}>
<div
on:click
on:mouseover
on:mouseenter
on:mouseleave
class={cx('--form-item', '--checkbox-wrapper', className)}
{style}>
<span class={cx('--checkbox-label', '--skeleton')} />
</div>