- Issue created by @besek
I've noticed that some styles added by the module can impact elements of the site built with laypout builder, that are not using Dashboards.
For example: I've found .layout--twocol-section.layout--twocol-section--50-50
being defined in dashboard.css:61
. This rule is adding gap and flex settings and it changed the look of other two-column section on my site. And this is despite the fact that when adding section in layout builder, I've chosen "Two column" layout and not "Dashboard: 2 Columns"
Install and enable "Dashboards with Layout Builder" module
Create any page with layout builder
Add new section and choose "Two column" (do not choose "Dashboard: 2 Columns"
Save the page
Note that styles from dashboards.css
are added to the div with classes layout layout--twocol-section layout--twocol-section--50-50
Change selectors in dashboard.css in a way that they would be only used in dahboard layouts
Active
2.1
Code