@vettvangur/design-system 2.0.16 → 2.0.17
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.
- package/dist/index.js +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2294,13 +2294,13 @@ function renderEntry(id, entry) {
|
|
|
2294
2294
|
const renderMeta = (family, size, line) => {
|
|
2295
2295
|
const lines = [];
|
|
2296
2296
|
if (family != null) {
|
|
2297
|
-
lines.push(`<div><strong>Font</strong>
|
|
2297
|
+
lines.push(`<div><strong>Font</strong> <span>${family}</span></div>`);
|
|
2298
2298
|
}
|
|
2299
2299
|
if (size != null) {
|
|
2300
|
-
lines.push(`<div><strong>Size</strong>
|
|
2300
|
+
lines.push(`<div><strong>Size</strong> <span>${size}px</span></div>`);
|
|
2301
2301
|
}
|
|
2302
2302
|
if (line != null) {
|
|
2303
|
-
lines.push(`<div><strong>Line height</strong>
|
|
2303
|
+
lines.push(`<div><strong>Line height</strong> <span>${line}px</span></div>`);
|
|
2304
2304
|
}
|
|
2305
2305
|
return lines.join('\n ');
|
|
2306
2306
|
};
|
|
@@ -2311,7 +2311,9 @@ ${renderPreview(id, title)}
|
|
|
2311
2311
|
</div>
|
|
2312
2312
|
|
|
2313
2313
|
<div class="ds-type-meta">
|
|
2314
|
-
|
|
2314
|
+
<div class="ds-type-meta__info">
|
|
2315
|
+
${renderMeta(defaultFamily, defaultSize, defaultLine)}
|
|
2316
|
+
</div>
|
|
2315
2317
|
</div>
|
|
2316
2318
|
|
|
2317
2319
|
${hasDesktopVariant ? `
|