Skip to content
Snippets Groups Projects
Commit 88352e67 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Apply patch to add CSS class to body...

Apply patch to add CSS class to body https://www.drupal.org/project/layout_builder_iframe_modal/issues/3371344#comment-15398930
parent 7f11c0da
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,8 @@ function layout_builder_iframe_modal_preprocess_html(&$variables) {
unset($variables['page']['pre_content']);
unset($variables['page']['breadcrumb']);
unset($variables['page']['#title']);
// Add class identifying modal so theme CSS can target it.
$variables['attributes']['class'][] = 'layout-builder-iframe-modal';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment