mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 03:01:25 +00:00
chore(prettier): use svelteStrictMode
This commit is contained in:
parent
322b238cf0
commit
42b8159b1c
182 changed files with 2020 additions and 1912 deletions
|
@ -14,21 +14,21 @@
|
|||
|
||||
<!-- svelte-ignore a11y-missing-attribute -->
|
||||
<a
|
||||
class:bx--tile={true}
|
||||
class:bx--tile--clickable={true}
|
||||
class:bx--tile--is-clicked={clicked}
|
||||
class:bx--tile--light={light}
|
||||
class:bx--tile="{true}"
|
||||
class:bx--tile--clickable="{true}"
|
||||
class:bx--tile--is-clicked="{clicked}"
|
||||
class:bx--tile--light="{light}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:click={() => {
|
||||
on:click="{() => {
|
||||
clicked = !clicked;
|
||||
}}
|
||||
}}"
|
||||
on:keydown
|
||||
on:keydown={({ key }) => {
|
||||
on:keydown="{({ key }) => {
|
||||
if (key === ' ' || key === 'Enter') {
|
||||
clicked = !clicked;
|
||||
}
|
||||
}}
|
||||
}}"
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue