Problem/Motivation
#2988970: Layout Builder should make it easier to modify the default layout for an entity type when viewing an entity adds a new message to Layout Builder that is incompatible with Umami's markup (because it differs from Classy)
It contains a workaround since Layout Builder cannot directly target Umami without also affecting every other theme.
Proposed resolution
Fix the styling and remove the workaround
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet

| Comment | File | Size | Author |
|---|---|---|---|
| #12 | layout-builder-3043228-12-message--defaults.png | 72.94 KB | shaal |
| #12 | layout-builder-3043228-12-message--overrides.png | 89.74 KB | shaal |
| #12 | recipe-default-view-mode-layout-builder.png | 11.99 KB | shaal |
| #12 | interdiff_11-12.txt | 957 bytes | shaal |
| #12 | ootb-layout-builder-messages-styling-3043228-12.patch | 2.68 KB | shaal |
Comments
Comment #2
tim.plunkettComment #3
bnjmnmPatch + screenshots
Comment #4
gábor hojtsyIf this is the right patch, we need an RTL version for this I think(?)
Comment #5
tim.plunkettI would expect this to unset the `background` set for .messages by Layout Builder and then to add the `background-image` directly to
.layout-builder__message--defaults .messages__contentwithin Umami.Then there's no need for the background-position change
Comment #6
kjay commentedAs per the review by @tim.plunkett, here's a patch that updates the patch in #3 to unset the default background image for status messages and applies the same globe icon from core using the inner content wrapper, as we do across Umami.
Also added the standard opening comment we have been using for each stylesheet.
Looks like the following when applied. Once #3044250: Make the highlighted region in Umami more flexible so it adapts to its use with Layout Builder and could be used to demonstrate placement of other blocks gets in, the message will include margin bottom and not be positioned up against the layout builder area.
Comment #7
gábor hojtsy@kjay: are the buttons smashing into each other in RTL a pre-existing problem or introduced here?
Comment #8
shaal@gaborhojtsy I think it is because of missing css rules in Umami, which is resolved in a separate issue -
https://www.drupal.org/project/drupal/issues/3044366#comment-13053807
Comment #9
kjay commented@gabor, Yes, as @shaal says and has shared the link to the issue that fixes the button layout.
Comment #10
tim.plunkettThere are two icons, one for defaults and one for overrides. This patch makes both use the one for defaults
Comment #11
shaalI added the missing icon mentioned in #10
I tested the patch on IE11 + RTL (works great)

Comment #12
shaalOops. I missed the overrides' icon override :)
In order to see the Layout Builder's override-icon:

Go to:
Structure > Content Types > Recipe > Manage Display > Default (view-mode)
Enable:
Use Layout Builder,Allow each content item to have its layout customizedThis patch is fixing it (with screenshots as a proof)
Icon of message-defaults:

Icon of message-overrides:

Comment #13
tim.plunkettThanks! This works as expected, and the patch is correct
Comment #14
gábor hojtsyDoes not apply on 8.8.x unfortunately.
Comment #17
gábor hojtsyI opted to fix that locally, it was a line offset problem in the libraries.yml only. Thanks all.