- Issue created by @ptomulik
The default links.html.twig template provided seems to not render some navigation lists properly. Here is an example of what the links for article comments look like currently
Bootswatch/bootstrap styles are not applied, due to missing nav-link class. Here is what it should look like in my case
Create fresh theme from radix starterkit, create article, add comment.
It seems like src/kits/radix_starterkit/templates/navigation/links.html.twig could be patched to properly add "nav-link" class to a <span>
containing the link. Currently it tries to add that clas using item.link.text_attributes.addClass('nav-link')
, but .text_attributes
are always null
here. Also, the docblock only mentions item.text_attributes.addClass('nav-link')
, not item.link.text_attributes.addClass('nav-link')
. I'd propose applying the attached patch to fix this.
Active
6.0
Code