So, inside root.html.heex files there are base HTML elements and inside body, using @inner content, elements from app.html.heex are loaded. All good so far but LiveView creates a wrapper div element around header and main inside app.html.heex so we get the following:
<body class="">
<div> <- WRAPPER ELEMENT
<header>
<main>
</div>
</body>
For styling purposes I would like to add some classes to this wrapper div, but how do I edit it?
Oh nice! Was not aware of this. The only disadvantage here is that you end up with CSS in a hard-to-find place. Could lead to a gotcha for those not in the know.