Loading

HTML Editor component headings (H1–H6) do not follow Experience Builder Theme font sizes in LWR sites

Дата публикации: Sep 1, 2026
Описание

In an Experience Builder (LWR) site, headings (H1–H6) entered in the HTML Editor component do not inherit the heading font sizes configured under Theme → Settings. The headings render at body-text size instead of the configured Theme sizes.

Symptoms-:

Headings authored in the HTML Editor component appear at the same size as body text.

Different heading levels (for example <h1> through <h6>) placed together in the HTML Editor render identically.

The same headings authored via the Text Block component do follow the Theme's heading sizes. Site-level / Theme CSS does not change the HTML Editor headings.

 

Cause-:

 This is expected behavior. Experience Builder Theme heading-size settings only apply to components that expose a native heading property (for example, the Text Block component). The HTML Editor is a raw-HTML container that ships its own SLDS baseline styling, which sets h1–h6 to font-size: 1em. Because 1em is relative to the surrounding body font size, the headings render at body-text size and do not pick up the Theme values. This SLDS baseline also takes precedence over site/Theme-level CSS overrides.

Решение
  • Inline CSS: Define the required font size directly within the HTML tags.
  • Custom CSS: Add custom CSS rules for the required heading elements and apply the desired styling.
Номер статьи базы знаний

005393600

 
Загрузка
Salesforce Help | Article