Layout icons are broken if Panels is installed (and Moderation Dashboard - part of Lightning Workflow - enables it). This was discussed as part of a demo here where we worked around the problem by disabling Panels's hook_layout_alter:

function engage_demo_module_implements_alter(array &$implementations, $hook) {
  if ($hook === 'layout_alter') {
    unset($implementations['panels']);
  }
}

Comments

balsama created an issue. See original summary.

balsama’s picture

Issue summary: View changes
bendeguz.csirmaz’s picture

I couldn't reproduce it with Lightning.

My steps:
- install Lightning 3.x
- install Layout Builder
- edit Basic page's layout

The icons of the layouts are displayed as expected.

balsama’s picture

Hi Bendi. Not sure why your steps wouldn't reproduce the problem, but try this with 4.x of the profile which defaults to 2.x of LL. I just confirmed again. Specific steps:

Install Lightning 4.x
Create a new Landing Page content
Edit the Layout
Add a new section

Note that the layout icons are missing in the sidebar:

balsama’s picture

Issue tags: +beta blocker
bendeguz.csirmaz’s picture

Thanks, I managed to reproduce it. This seems like a bug in Panels. See: #3030976: Panels should check if there is an icon map before setting the no preview icon

balsama’s picture

It seems unlikely that Panels is going to make a release for this anytime soon. Should we just pull in the patch?

bendeguz.csirmaz’s picture

Project: Lightning Layout » Lightning Workflow
Status: Active » Needs review
StatusFileSize
new537 bytes

If it's a blocker then we could pull it in.

phenaproxima’s picture

Project: Lightning Workflow » Lightning Layout
Status: Needs review » Fixed

Fixed in e7a3854. Thanks!

Status: Fixed » Closed (fixed)

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