Notification breaks optimizeCss()
nziu opened this issue · 1 comments
nziu commented
spliced strings unexpectedly retain all styles
<svelte:component
this="{icons[kind]}"
size="{20}"
title="{iconDescription}"
class="bx--{notificationType}-notification__icon"
/>
<svelte:component
this="{icon}"
size="{20}"
title="{title}"
class="bx--{notificationType}-notification__close-icon"
/>
</button>
compile result
function switch_props(ctx) {
return {
props: {
size: 20,
title: /*iconDescription*/ ctx[2],
class: "bx--" + /*notificationType*/ ctx[1] + "-notification__icon",
},
};
}
metonym commented
Thanks for reporting. NotificationButton
, NotificationIcon
no longer use dynamic class names in carbon-components-svelte@0.67.6.
Please let me know if this issue persists.