fix(loading)!: remove redundant description label (#1783)

Fixes #1670
This commit is contained in:
Eric Liu 2023-07-23 14:07:55 -07:00 committed by GitHub
commit d6804b44fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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