mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
chore(prettier): use svelteStrictMode
This commit is contained in:
parent
322b238cf0
commit
42b8159b1c
182 changed files with 2020 additions and 1912 deletions
|
@ -1,8 +1,8 @@
|
|||
<span
|
||||
class:bx--tag={true}
|
||||
class:bx--skeleton={true}
|
||||
class:bx--tag="{true}"
|
||||
class:bx--skeleton="{true}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave />
|
||||
on:mouseleave></span>
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
{#if story === 'filter'}
|
||||
<Tag
|
||||
{...$$restProps}
|
||||
on:click={() => {
|
||||
on:click="{() => {
|
||||
console.log('click');
|
||||
}}>
|
||||
}}">
|
||||
{slot}
|
||||
</Tag>
|
||||
{:else if story === 'skeleton'}
|
||||
|
|
|
@ -49,21 +49,21 @@
|
|||
{:else}
|
||||
{#if filter}
|
||||
<div
|
||||
aria-label={title}
|
||||
{id}
|
||||
class:bx--tag={true}
|
||||
class:bx--tag--disabled={disabled}
|
||||
class:bx--tag--filter={filter}
|
||||
aria-label="{title}"
|
||||
id="{id}"
|
||||
class:bx--tag="{true}"
|
||||
class:bx--tag--disabled="{disabled}"
|
||||
class:bx--tag--filter="{filter}"
|
||||
{...$$restProps}
|
||||
class="{type && `bx--tag--${type}`} {$$restProps.class}">
|
||||
<slot props={{ class: 'bx--tag__label' }}>
|
||||
<span class:bx--tag__label={true}>{type}</span>
|
||||
<slot props="{{ class: 'bx--tag__label' }}">
|
||||
<span class:bx--tag__label="{true}">{type}</span>
|
||||
</slot>
|
||||
<button
|
||||
aria-labelledby={id}
|
||||
class:bx--tag__close-icon={true}
|
||||
{disabled}
|
||||
{title}
|
||||
aria-labelledby="{id}"
|
||||
class:bx--tag__close-icon="{true}"
|
||||
disabled="{disabled}"
|
||||
title="{title}"
|
||||
on:click|stopPropagation
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
|
@ -73,8 +73,8 @@
|
|||
</div>
|
||||
{:else}
|
||||
<span
|
||||
class:bx--tag={true}
|
||||
class:bx--tag--disabled={disabled}
|
||||
class:bx--tag="{true}"
|
||||
class:bx--tag--disabled="{disabled}"
|
||||
{...$$restProps}
|
||||
class="{type && `bx--tag--${type}`} {$$restProps.class}"
|
||||
on:click
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue