mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
refactor(notification): resolve svelte file in imports
This commit is contained in:
parent
ca1208f6cb
commit
d09f0f8731
2 changed files with 8 additions and 9 deletions
|
@ -20,7 +20,7 @@
|
|||
/** Specify the ARIA label for the icon */
|
||||
export let iconDescription = "Close icon";
|
||||
|
||||
import Close20 from "carbon-icons-svelte/lib/Close20";
|
||||
import Close20 from "carbon-icons-svelte/lib/Close20/Close20.svelte";
|
||||
</script>
|
||||
|
||||
<button
|
||||
|
@ -38,7 +38,6 @@
|
|||
<svelte:component
|
||||
this="{renderIcon}"
|
||||
title="{title}"
|
||||
class="{notificationType === 'toast' && 'bx--toast-notification__close-icon'}
|
||||
{notificationType === 'inline' && 'bx--inline-notification__close-icon'}"
|
||||
class="bx--{notificationType}-notification__close-icon"
|
||||
/>
|
||||
</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue