Problem/Motivation
Canvas needs a bit different philosophy on page.html.twig file structure. There should be less regions (usually header, content and footer is enough) and the content section region should not be wrapped into centering container, so Canvas can handle full-width edge-to-edge layouts natively, by using the section SDC in canvas editor properly. Section SDC is already shipped by theme.
Proposed resolution
When user turns the "Use Drupal Canvas for page templates in this theme." option on, it should automatically enable only regions that makes sense for canvas.
Content should stay wrapped into section SDC only if page is not rendered by canvas (utilize rendered_by_canvas variable).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Zrzut ekranu 2026-04-2 o 15.32.02.png | 119.8 KB | firflant |
Issue fork tailwindcss-3582806
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
firflantComment #4
firflantHere is how default regions configuration for canvas now looks like
Comment #5
firflantComment #6
ravi kant commentedLooking good for me. Working as suggested in ticket.
Comment #7
firflant@ravi-kant I cannot assist in merging the changes. Are you capable of adding my account as a maintainer, so we can keep going? @opdavies after its initial messages is completely out of touch. It seems that you are the main person in charge now.
Regards
Comment #9
ravi kant commented@firflant I cannot add maintainer But i have merged the PR.
Comment #10
ravi kant commentedComment #12
ravi kant commented