mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore(prettier): use svelteStrictMode
This commit is contained in:
parent
322b238cf0
commit
42b8159b1c
182 changed files with 2020 additions and 1912 deletions
|
@ -33,18 +33,18 @@
|
|||
</script>
|
||||
|
||||
<svelte:body
|
||||
on:keydown={({ key }) => {
|
||||
on:keydown="{({ key }) => {
|
||||
if (key === 'Escape') {
|
||||
hidden = true;
|
||||
}
|
||||
}} />
|
||||
}}" />
|
||||
|
||||
<button
|
||||
bind:this={ref}
|
||||
aria-describedby={id}
|
||||
class:bx--tooltip__trigger={true}
|
||||
class:bx--tooltip--a11y={true}
|
||||
class:bx--tooltip--hidden={hidden}
|
||||
bind:this="{ref}"
|
||||
aria-describedby="{id}"
|
||||
class:bx--tooltip__trigger="{true}"
|
||||
class:bx--tooltip--a11y="{true}"
|
||||
class:bx--tooltip--hidden="{hidden}"
|
||||
{...$$restProps}
|
||||
class="{direction && `bx--tooltip--${direction}`}
|
||||
{align && `bx--tooltip--align-${align}`}
|
||||
|
@ -52,14 +52,14 @@
|
|||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseenter={() => {
|
||||
on:mouseenter="{() => {
|
||||
hidden = false;
|
||||
}}
|
||||
}}"
|
||||
on:mouseleave
|
||||
on:focus
|
||||
on:focus={() => {
|
||||
on:focus="{() => {
|
||||
hidden = false;
|
||||
}}>
|
||||
<span {id} class:bx--assistive-text={true}>{tooltipText}</span>
|
||||
}}">
|
||||
<span id="{id}" class:bx--assistive-text="{true}">{tooltipText}</span>
|
||||
<slot />
|
||||
</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue