fix(a11y): ignore a11y-label-has-associated-control warnings

#226
This commit is contained in:
Eric Liu 2020-08-08 16:14:51 -07:00
commit 2e980e0968
2 changed files with 3 additions and 0 deletions

View file

@ -44,6 +44,7 @@
class:bx--loading={true}
class:bx--loading--small={small}
class:bx--loading--stop={!active}>
<!-- svelte-ignore a11y-label-has-associated-control -->
<label class:bx--visually-hidden={true} {id}>{description}</label>
<svg class:bx--loading__svg={true} viewBox="-75 -75 150 150">
<title>{description}</title>
@ -71,6 +72,7 @@
class:bx--loading--small={small}
class:bx--loading--stop={!active}
{...$$restProps}>
<!-- svelte-ignore a11y-label-has-associated-control -->
<label class:bx--visually-hidden={true} {id}>{description}</label>
<svg class:bx--loading__svg={true} viewBox="-75 -75 150 150">
<title>{description}</title>

View file

@ -19,6 +19,7 @@
</script>
{#if label}
<!-- svelte-ignore a11y-label-has-associated-control -->
<label
role="presentation"
{tabindex}