@dorsk/tsumikit 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49,7 +49,14 @@
|
|
|
49
49
|
<span class="metric-label">{label}</span>
|
|
50
50
|
{#if icon || iconChildren}
|
|
51
51
|
<span class="metric-chip" aria-hidden="true">
|
|
52
|
-
|
|
52
|
+
<!-- Only forward a children snippet when a custom icon was actually
|
|
53
|
+
provided; otherwise Icon's `children` branch always wins and the
|
|
54
|
+
registry `name` glyph never renders (empty chip). -->
|
|
55
|
+
{#if iconChildren}
|
|
56
|
+
<Icon name={icon}>{@render iconChildren()}</Icon>
|
|
57
|
+
{:else}
|
|
58
|
+
<Icon name={icon} />
|
|
59
|
+
{/if}
|
|
53
60
|
</span>
|
|
54
61
|
{/if}
|
|
55
62
|
</div>
|
package/package.json
CHANGED