Problem/Motivation

The classes I want to make available to the Section container are usually not the same as the classes I want to be used on Regions. It would be nice to be able to configure both class lists separately.

Steps to reproduce

Proposed resolution

Create a new "region_class_list" config setting. Ensure backward compatibility by copying the initial value from "class_list" in an update hook.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Les Lim created an issue. See original summary.

les lim’s picture

Status: Active » Needs review
siramsay’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new6.77 KB

I tested this and works as stated. I've patched 2.0.x

  • Add the new Section region CSS classes to choose from input
  • Copies class_list to region_class_list on updatedb

I am adding a patch from the Issue fork that I am using with my composer patches.

Adding a couple of image:

  1. Layout Builder tray with region specific classes
  2. Layout configure with copied section classes
siramsay’s picture

StatusFileSize
new316.67 KB
new159.15 KB