Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My local actions are coming out like this
<nav><li><a href="/node/add/event" class="button button-action" data-drupal-link-system-path="node/add/event">Create event</a></li>
</nav>
The LocalActionManager returns renderable links to the block builder, which forwards them as is.
Then each link is themed https://api.drupal.org/api/drupal/core!includes!menu.inc/function/templa...
then menu-local-action.html.twig wraps the li around it
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedComment #3
dawehnerComment #12
markconroy CreditAttribution: markconroy commentedMarking as duplicate of #2829997: Local action links should be inside UL element - we'll leave the other as the main issue, since it has comments and suggestions in it.