MDL-74229 navigation: add data-key to navtabs

This commit is contained in:
Bas Brands 2022-03-16 13:30:04 +01:00
parent 9344149aba
commit f0e32f99b4
2 changed files with 2 additions and 1 deletions

View File

@ -83,6 +83,7 @@ class primary implements renderable, templatable {
'text' => $node->text,
'icon' => $node->icon,
'isactive' => $node->isactive,
'key' => $node->key
];
}

View File

@ -56,7 +56,7 @@
</li>
{{/haschildren}}
{{^haschildren}}
<li class="nav-item" role="none" data-forceintomoremenu="{{#forceintomoremenu}}true{{/forceintomoremenu}}{{^forceintomoremenu}}false{{/forceintomoremenu}}">
<li data-key="{{key}}" class="nav-item" role="none" data-forceintomoremenu="{{#forceintomoremenu}}true{{/forceintomoremenu}}{{^forceintomoremenu}}false{{/forceintomoremenu}}">
{{#tab}}
{{#is_action_link}}
<a role="menuitem" class="nav-link {{#classes}}{{.}} {{/classes}}" href="{{tab}}" data-toggle="tab" data-text="{{{text}}}" aria-current="false" data-disableactive="true" tabindex="-1">