I’m trying to add to my inline style with this in a partial included in base.html.twig using {% include 'xxx-xxx.html.twig' %}but it isn’t working. If i add the same {% do assets.addInlineCss('') %} in base.html.twig it works.
How does your rendered page source look, is there something wrong with it, or does the inline css not appear at all? Is the link correct: 'xxx-xxx.html.twig' and not 'partials/xxx-xxx.html.twig'?
The source code shows the content of the partial. I also see my other inline CSS added by the various modules of the modular page. The added CSS by the xxx-xxx.html.twig partial is the only thing missing.
If I put {{ assets.css() }} at the very bottom of base.html.twig the inlined CSS in my menu small-menu-li.html.twig (called xxx-xxx.html.twig in previous posts) shows correctly.