Follow-up for #3462636: component previews in left menu don't have style encapsulation

Created on 6 August 2024, about 1 month ago
Updated 23 August 2024, 27 days ago

Overview

Follow-up for Preview component when selecting in left sidebar Fixed .

I modified my-hero.css to add a style at the top.

button {
  box-shadow: 4px 4px hotpink;
}

(then run drush cr)

Now when I hover over the Hero component in the left hand menu, the styles are loaded in but they affect the whole page.

Proposed resolution

Wrap the preview in either ShadowDom or an iFrame (iFrame might introduce issues with the way the preview is scaled)

🐛 Bug report
Status

Fixed

Component

Page builder

Created by

🇬🇧United Kingdom jessebaker

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024