Generated with the help of an LLM.

Problem/Motivation

The theme page shell renders the theme's page template, but its regions miss the region theme wrapper: no region region-content element. A theme styling .region-* loses those rules. Mercury sets its page container and padding on .region-content.
Core adds the wrapper in HtmlRenderer::prepare(), to the page it builds. PageLayoutSource::getPropValue() builds its own page array, which core never sees.

Steps to reproduce

  1. Create a page layout with the theme page shell and put a block in the content region.
  2. View a page: no region-content wrapper around it.

Proposed resolution

Add #theme_wrappers: ['region'] and #region to each non-empty region in getPropValue().

Remaining tasks

  1. Kernel test on the rendered region markup.
  2. Fix.
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

mogtofu33 created an issue. See original summary.

mogtofu33’s picture

Assigned: Unassigned » pdureau
Status: Active » Needs review
pdureau’s picture

Assigned: pdureau » mogtofu33
Status: Needs review » Reviewed & tested by the community

Tested locally with Core's Olivero theme. Works great.