Remove footer from modal

Created on 21 July 2023, 11 months ago
Updated 7 September 2023, 10 months ago

Problem/Motivation

Footer blocks are appearing in the modal, but probably shouldn't be.

This may be a result of using the front end theme as admin, and normally there wouldn't be admin blocks in the footer.

Proposed resolution

We can unset page.footer in layout_builder_iframe_modal_preprocess_html().

Alternatively, we can tell themers to implement their own hook to unset page regions. Documentation would help figure it out, and a contrib module won't be able to catch all the region names themes could be using.

Another option is to restrict each block from /admin via block settings.

Looks like the modal renderer in core is only doing the main content region. Why don't we follow that?

Remaining tasks

Decide which way makes sense.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

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

Comments & Activities

Production build 0.69.0 2024