@vectoriox/iox-builder 1.7.12 → 1.7.13
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.
|
@@ -7581,6 +7581,11 @@ class BuilderIconComponentConfig extends ComponentConfig {
|
|
|
7581
7581
|
this.applyStyleDefaults({
|
|
7582
7582
|
fontSize: '24px',
|
|
7583
7583
|
color: '#374151',
|
|
7584
|
+
// An icon is a glyph, not a paragraph — the Typography group's default line-height of
|
|
7585
|
+
// 1.5 adds phantom vertical space and misaligns it. Default it to 1 so the box hugs the
|
|
7586
|
+
// glyph. Serialized into styleProps (self-describing node), so the builder AND the SSR
|
|
7587
|
+
// engine both compile `line-height: 1` — no engine-side special-case needed.
|
|
7588
|
+
lineHeight: '1',
|
|
7584
7589
|
});
|
|
7585
7590
|
}
|
|
7586
7591
|
}
|