@vectoriox/iox-builder 1.9.0 → 1.9.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.
@@ -2239,7 +2239,11 @@ class TypographyGroupStyleConfig extends GroupStyleConfig {
2239
2239
  new TraitConfig('fontSize', 'Font Size', TraitInputType.Scrub, { min: 8, max: 200, step: 1, units: UNITS_ALL }, '16px'),
2240
2240
  new TraitConfig('fontWeight', 'Weight', TraitInputType.Scrub, { min: 100, max: 900, step: 100, units: [''] }, '400'),
2241
2241
  new TraitConfig('color', 'Color', TraitInputType.Color, { allowGradient: false, allowTransparent: false, formats: ['hex', 'rgb', 'hsl'] }, '#000000'),
2242
- new TraitConfig('lineHeight', 'Line Height', TraitInputType.Scrub, { min: 0.5, max: 5, step: 0.05, units: [''] }, '1.5'),
2242
+ // Unitless on purpose (`units: ['']`): a unitless line-height inherits as a RATIO — each
2243
+ // descendant multiplies it by its OWN font-size — whereas `1.5em`/`24px` inherits a fixed
2244
+ // computed length that ignores the child's font-size. min:0 so a line box can be collapsed
2245
+ // completely (icons/glyph-only elements), which `0.5` used to block.
2246
+ new TraitConfig('lineHeight', 'Line Height', TraitInputType.Scrub, { min: 0, max: 5, step: 0.05, units: [''] }, '1.5'),
2243
2247
  new TraitConfig('letterSpacing', 'Spacing', TraitInputType.Scrub, { min: -5, max: 50, step: 0.5, units: UNITS_FIXED }, '0px'),
2244
2248
  new TraitConfig('textAlign', '', TraitInputType.SelectButton, [
2245
2249
  { value: 'left', icon: 'ph-thin ph-text-align-left' },
@@ -7491,10 +7495,10 @@ class BuilderIconComponentConfig extends ComponentConfig {
7491
7495
  fontSize: '24px',
7492
7496
  color: '#374151',
7493
7497
  // An icon is a glyph, not a paragraph — the Typography group's default line-height of
7494
- // 1.5 adds phantom vertical space and misaligns it. Default it to 1 so the box hugs the
7495
- // glyph. Serialized into styleProps (self-describing node), so the builder AND the SSR
7496
- // engine both compile `line-height: 1` — no engine-side special-case needed.
7497
- lineHeight: '1',
7498
+ // 1.5 adds phantom vertical space and misaligns it. Default to 0 so the line box is fully
7499
+ // collapsed and the icon contributes no extra vertical space (spacing comes from
7500
+ // padding/margin instead). Serialized into styleProps (self-describing node).
7501
+ lineHeight: '0',
7498
7502
  });
7499
7503
  }
7500
7504
  }