ui_styles_entity_status applies styles multiple times (node + LB sections)

Created on 26 September 2025, 10 days ago
Updated 29 September 2025, 7 days ago

Problem/Motivation

Hello, I noticed \Drupal\ui_styles_entity_status\HookHandler\EntityView::alter applies selected styles on the node attributes itself + all layout builder sections. Why is that? Is it perhaps to accomodate with displays using node--bare template ?

When using background this is not a problem but it becomes a problem when we attempt to use border instead.
Here is an example from sobki bootstrap.

Steps to reproduce

- Install ui_styles_entity_status and use a border instead of background in theme settings (Unpublished entity styles).
- Setup a layout builder-enabled entity with a few sections
- Notice an unpublished entity has the border applied multiple times (on and all layout sections)

Proposed resolution

Possibly remove adding styles on layout builder sections? or make it optional? or detect node--bare?

Remaining tasks

?

User interface changes

?

API changes

N/A

Data model changes

N/A

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium herved

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

Comments & Activities

Not all content is available!

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

No activities found.

Production build 0.71.5 2024