mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
refactor(checkbox): make classes reactive
This commit is contained in:
parent
f75e3264cc
commit
60d9258d0b
4 changed files with 29 additions and 25 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue