Fix a11y warnings emitted by Svelte v3.45 (#989)

* chore(deps-dev): bump svelte to version 3.45

* fix: resolve a11y violations

Fixes #988
This commit is contained in:
Eric Liu 2022-01-10 11:57:52 -10:00 committed by GitHub
commit 502f9379fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 7 deletions

View file

@ -198,7 +198,6 @@
bind:this="{ref}"
class:bx--list-box__field="{true}"
tabindex="0"
role="button"
aria-expanded="{open}"
on:keydown="{(e) => {
const { key } = e;

View file

@ -78,7 +78,7 @@
<svelte:window bind:innerWidth="{winWidth}" />
<header role="banner" aria-label="{ariaLabel}" class:bx--header="{true}">
<header aria-label="{ariaLabel}" class:bx--header="{true}">
<slot name="skip-to-content" />
{#if ($shouldRenderHamburgerMenu && winWidth < expansionBreakpoint) || persistentHamburgerMenu}
<HamburgerMenu