stable as a base theme, I'm building a theme that will provide styles for paragraph items.
The default output (without any templates affecting this area) seems weird to me, though. Take a look at this simplified version (stripped of
<div> <div> <div class="paragraph"> <!-- paragraph content --> </div> </div> <div> <div class="paragraph"> <!-- paragraph content --> </div> </div> </div>
As you can see, the wrapping element around all paragraphs, as well as the element wrapping each paragraph lack any classes and are therefore quite useless. Furthermore, for the indivudual paragraph, another div inside them has a class that would actually be useful, but it's too far down the document hierarchy to be actually useful in styling.
Attempting to remedy this by myself by modifying
paragraph.html.twig, I can get to the div currently holding the
.paragraph class, but nothing above that.
I assume all has it's purpose, but I also think this is a weird default behavior, as there is no apparent need for two nested divs for each individual paragraph in any normal use case. Am I missing something?