mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
refactor(toggle): remove dispatch, inputRef, afterUpdate
This commit is contained in:
parent
29c7c471c3
commit
4b1ed0adce
5 changed files with 19 additions and 26 deletions
|
@ -11,7 +11,7 @@
|
|||
<div on:click on:mouseover on:mouseenter on:mouseleave class={cx('--form-item', className)} {style}>
|
||||
<input type="checkbox" class={cx('--toggle --skeleton')} {id} />
|
||||
<label
|
||||
aria-label={labelText ? null : $$props['aria-label'] || 'Toggle is loading'}
|
||||
aria-label={labelText ? undefined : $$props['aria-label'] || 'Toggle is loading'}
|
||||
class={cx('--toggle__label', '--skeleton')}
|
||||
for={id}>
|
||||
{#if labelText}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue