Remove div.content from block.html.twig and node.html.twig

Created on 11 February 2013, almost 12 years ago
Updated 5 July 2023, over 1 year ago

There is a todo in block.html.twig:

remove the div around content - and make sure this doesn't break any CSS defined in modules.

Note that there is no similar todo in the node.html.twig, so, to me, this is introducing inconsistencies into how we're structuring various different containers, which at the end of the day, are very similar structures: a wrapper tag, an h2/h3 for the node/block title and a div.content wrapper.

But obviously, I'm open to being convinced otherwise, hence I've opened this issue to discuss and am linking to it in the front-end branch.

This is a follow-up from #1843092: id attribute block.html.twig and node.html.twig .

📌 Task
Status

Closed: outdated

Version

8.0 ⚰️

Component
Theme 

Last updated about 1 hour ago

Created by

🇪🇨Ecuador jwilson3

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

Comments & Activities

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    I am moving this issue back to Drupal core from the (now deleted) sandbox project used for the development of the theme engine that uses Twig.
    I am also marking it as obsolete; feel free to re-open it if necessary.

    I apologize for bumping this issue.

Production build 0.71.5 2024