You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some content editors have been relying on a bug in field-group-html-element.html.twig to add space between elements. Currently, blocks embedded in content are output using the field-group-html-element.html.twig, which applies the spaceless filter to all rendered HTML.
The spaceless filter is too aggressive in the field-group-html-element.html.twig template, resulting in unintended removal of spaces that content editors may rely on for layout purposes.
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Proposed resolution
I propose creating new templates specifically for heading elements that do not utilize the spaceless filter. This will allow content editors to maintain the necessary spacing for headings while still benefiting from the existing functionality for other elements.
Problem/Motivation
Some content editors have been relying on a bug in
field-group-html-element.html.twig
to add space between elements. Currently, blocks embedded in content are output using thefield-group-html-element.html.twig
, which applies the spaceless filter to all rendered HTML.The spaceless filter was applied in this commit: a119b5c#diff-85998c378764d17df837312a6a3594e772f590e5ef1f3311eaf4252c886ff3f7
Describe the bug
The spaceless filter is too aggressive in the
field-group-html-element.html.twig
template, resulting in unintended removal of spaces that content editors may rely on for layout purposes.To Reproduce
Steps to reproduce the behavior:
Proposed resolution
I propose creating new templates specifically for heading elements that do not utilize the spaceless filter. This will allow content editors to maintain the necessary spacing for headings while still benefiting from the existing functionality for other elements.
Proposed files:
field-group-html-element.h1.twig
field-group-html-element.h2.twig
field-group-html-element.h3.twig
field-group-html-element.h4.twig
Expected behavior
Screenshots
Additional context
This issue is most prevalent with inline buttons within embedded content blocks.
The text was updated successfully, but these errors were encountered: