- Issue created by @pdureau
Presenter templates must not have markup, only calls to components
page.html.twig is a presenter template with:
ui_suite_daisyui:navbar
Snippet:
<main role="main" class="grid grid-cols-12">
{% if page.sidebar %}
<div class="col-span-9">
{{ page.content }}
</div>
<aside class="col-span-3" role="complementary">
{{ page.sidebar }}
</aside>
{% else %}
<div class="col-span-12">
{{ page.content }}
</div>
{% endif %}
</main>
It was not an issue before, but we have grid row components now.
Calling grid row component(s) in page template will have those benefits:
You may be interested by what was done in https://git.drupalcode.org/project/ui_suite_material/-/blob/2.0.x/templa...
And what will be done in Bootstrap theme:
📌
[5.1.x] Use grid row components in page.html.twig
Active
And DSFR theme:
📌
[1.1.x] Use grid row components in page.html.twig
Active
Maybe some additional props or mechanisms to grid SDC components, but nothing breaking.
Active
4.0
Code