Duplicate main elements

Created on 9 August 2024, 8 months ago

Problem/Motivation

I have duplicate <main ...><section class="ct-layout__main" > in my code, one in the other. This goes against the spec.

There is one in the component library which is included from page.html.twig.
https://git.drupalcode.org/project/civictheme/-/blob/1.x/lib/uikit/compo...
There is another one coming from this template.
https://git.drupalcode.org/project/civictheme/-/blob/1.x/templates/layou...

I'm happy to be told I'm doing it wrong, but please explain the logic of how a single "Main" tag should be produced in civictheme so that I can learn. Because I'm attempting to keep things as vanilla as possible. My theory is the layout-three-columns shouldn't be there becasue it's not in either of the other layout twigs, and the page.html.twig inclusion seems like it would be default.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.8

Component

Code

Created by

🇦🇺Australia sime Melbourne

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

Comments & Activities

Production build 0.71.5 2024