I am also taking a look at this issue as part of contribution day at DrupalCon Portland 2024.
So far I'm not seeing the title
variable (see line 4) ever get populated in the navigation--menu.html.twig
template. Either way, I'm also seeing a heading level is being skipped between the menu template and its parent block--navigation.html.twig
template.
We might consider not outputting a heading in the menu template, and instead provide an aria-label
attribute for the <ul>
, which would use the title
var as its value.
This makes great sense and will be a big step forward in signaling to js developers that Drupal is serious about supporting legit tools expected from a modern CMS.
laura.gates β credited thehuffman β .