Problem/Motivation

When blocks are placed in the block configuration form or in layout builder and you allow to show labels, the labels don't render on the page.

Steps to reproduce

Place a block either in block configuration form or in layout builder and click checkbox to 'Display title' then save the page. View the page and the title is not displayed.

Proposed resolution

Maintainers probably forgot to include label and label_attributes in the variables mapping in block.html.twig, so Twig discarded them before reaching the component, being that the template is using the only keyword.

Remaining tasks

Review the opened merge request.

Issue fork artisan-3605483

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

chike created an issue. See original summary.

alejandro cabarcos made their first commit to this issue’s fork.

alejandro cabarcos’s picture

Status: Active » Fixed

Thanks chike for you contribution!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.