mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(notification): avoid dynamic class names in NotificationButton
, NotificationIcon
(#1425)
Fixes https://github.com/carbon-design-system/carbon-preprocess-svelte/issues/39
This commit is contained in:
parent
7fe9b39436
commit
d2cc75d883
2 changed files with 6 additions and 2 deletions
|
@ -40,6 +40,8 @@
|
||||||
this="{icon}"
|
this="{icon}"
|
||||||
size="{20}"
|
size="{20}"
|
||||||
title="{title}"
|
title="{title}"
|
||||||
class="bx--{notificationType}-notification__close-icon"
|
class="{notificationType === 'toast' &&
|
||||||
|
'bx--toast-notification__close-icon'} {notificationType === 'inline' &&
|
||||||
|
'bx--inline-notification__close-icon'}"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -35,5 +35,7 @@
|
||||||
this="{icons[kind]}"
|
this="{icons[kind]}"
|
||||||
size="{20}"
|
size="{20}"
|
||||||
title="{iconDescription}"
|
title="{iconDescription}"
|
||||||
class="bx--{notificationType}-notification__icon"
|
class="{notificationType === 'toast' &&
|
||||||
|
'bx--toast-notification__icon'} {notificationType === 'inline' &&
|
||||||
|
'bx--inline-notification__icon'}"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue