mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51: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
|
@ -29,7 +29,7 @@
|
|||
</script>
|
||||
|
||||
<svelte:window
|
||||
on:mouseup={({ target }) => {
|
||||
on:mouseup="{({ target }) => {
|
||||
if (ref.contains(target) || target === ref) {
|
||||
expanded = !expanded;
|
||||
} else {
|
||||
|
@ -37,26 +37,26 @@
|
|||
expanded = false;
|
||||
}
|
||||
}
|
||||
}} />
|
||||
}}" />
|
||||
|
||||
<li class:bx--header__submenu={true} title={iconDescription}>
|
||||
<li class:bx--header__submenu="{true}" title="{iconDescription}">
|
||||
<a
|
||||
bind:this={ref}
|
||||
bind:this="{ref}"
|
||||
role="menuitem"
|
||||
tabindex="0"
|
||||
aria-haspopup="menu"
|
||||
aria-expanded={expanded}
|
||||
aria-label={text}
|
||||
{href}
|
||||
class:bx--header__menu-item={true}
|
||||
class:bx--header__menu-title={true}
|
||||
aria-expanded="{expanded}"
|
||||
aria-label="{text}"
|
||||
href="{href}"
|
||||
class:bx--header__menu-item="{true}"
|
||||
class:bx--header__menu-title="{true}"
|
||||
{...$$restProps}
|
||||
on:keydown
|
||||
on:keydown={({ key }) => {
|
||||
on:keydown="{({ key }) => {
|
||||
if (key === 'Enter') {
|
||||
expanded = !expanded;
|
||||
}
|
||||
}}
|
||||
}}"
|
||||
on:click|preventDefault
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
|
@ -66,10 +66,10 @@
|
|||
on:blur>
|
||||
{text}
|
||||
<ChevronDown16
|
||||
aria-label={iconDescription}
|
||||
aria-label="{iconDescription}"
|
||||
class="bx--header__menu-arrow" />
|
||||
</a>
|
||||
<ul role="menu" aria-label={text} class:bx--header__menu={true}>
|
||||
<ul role="menu" aria-label="{text}" class:bx--header__menu="{true}">
|
||||
<slot />
|
||||
</ul>
|
||||
</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue