diff --git a/src/lib/components/list/Avatar.svelte b/src/lib/components/list/Avatar.svelte index 2848cf68..2ba9e96c 100644 --- a/src/lib/components/list/Avatar.svelte +++ b/src/lib/components/list/Avatar.svelte @@ -18,10 +18,8 @@ let failed = false; let loading = true; - setContext('avatar-src', src); - setContext('avatar-alt', alt); - setContext('avatar-shape', shape); - setContext('avatar-size', size); + setContext('list-avatar-shape', shape); + setContext('list-avatar-size', size); let defaultClass = ''; let containerDefaultClass = ''; diff --git a/src/lib/components/list/Placeholder.svelte b/src/lib/components/list/Placeholder.svelte index b4048b0d..a2efdf0f 100644 --- a/src/lib/components/list/Placeholder.svelte +++ b/src/lib/components/list/Placeholder.svelte @@ -12,8 +12,8 @@ export let loading = false; - const shape: 'circle' | 'rounded' | 'square' = getContext('avatar-shape'); - const size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = getContext('avatar-size'); + const shape: 'circle' | 'rounded' | 'square' = getContext('list-avatar-shape'); + const size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = getContext('list-avatar-size'); let iconContainerClass = 'absolute text-light-icon dark:text-dark-icon h-full w-full'; let iconSize = '';