Wrapper / item behavior consolidation

Created on 18 January 2023, almost 2 years ago
Updated 4 September 2024, 4 months ago

Problem/Motivation

The issue Allow to apply classes on Layout Builder block wrapper Fixed raised the concern of wrapper/item handling and consolidation of the behavior of applying styles to render elements.

Proposed resolution

A first draft of guidelines discussed with @pdureau:

If there is a wrapper => if only one child apply on the child otherwise on the wrapper if multiple children
If no wrapper => apply to all the children => Done in Block content styles are not applied when an embedded entity does not use layout_builder Fixed

If layout builder => apply to all the sections

Remaining tasks

-
- Loop on sections when layout builder
- uniformize between Element::isAcceptingAttributes then Element::addClasses like for Layout Builder and $this->addStyleToBlockContent()

🐛 Bug report
Status

Fixed

Version

1.0

Component

Miscellaneous

Created by

🇫🇷France Grimreaper France 🇫🇷

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024