fix(loading)!: remove redundant description label

Fixes #1670
This commit is contained in:
metonym 2023-07-23 14:02:27 -07:00
commit 6d062e1e14
6 changed files with 25 additions and 51 deletions

View file

@ -12,7 +12,8 @@
export let description = undefined;
/**
* Specify the ARIA label for the loading icon
* Specify a description for the loading icon.
* Defaults to the `status` prop for the "error" and "finished" states
* @type {string}
*/
export let iconDescription = undefined;
@ -59,12 +60,12 @@
{#if status === "error"}
<ErrorFilled
class="bx--inline-loading--error"
title="{iconDescription}"
title="{iconDescription || status}"
/>
{:else if status === "finished"}
<CheckmarkFilled
class="bx--inline-loading__checkmark-container"
title="{iconDescription}"
title="{iconDescription || status}"
/>
{:else if status === "inactive" || status === "active"}
<Loading