File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
view/frontend/templates/html Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ protected function _getHtml(
246
246
}
247
247
248
248
$ html .= '<li ' . $ this ->_getRenderedMenuItemAttributes ($ child ) . '> ' ;
249
- $ html .= '<a href=" ' . $ child ->getUrl () . '" ' . $ outermostClassCode . '><span> ' . $ this ->escapeHtml (
249
+ $ html .= '<a href=" ' . $ child ->getUrl () . '" ' . $ outermostClassCode . ' role="menuitem" ><span> ' . $ this ->escapeHtml (
250
250
$ child ->getName ()
251
251
) . '</span></a> ' . $ this ->_addSubMenu (
252
252
$ child ,
@@ -288,7 +288,10 @@ protected function _getRenderedMenuItemAttributes(Node $item)
288
288
*/
289
289
protected function _getMenuItemAttributes (Node $ item )
290
290
{
291
- return ['class ' => implode (' ' , $ this ->_getMenuItemClasses ($ item ))];
291
+ return [
292
+ 'class ' => implode (' ' , $ this ->_getMenuItemClasses ($ item )),
293
+ 'role ' => 'presentation '
294
+ ];
292
295
}
293
296
294
297
/**
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ $groupCss = $block->getGroupCss();
34
34
</div>
35
35
<div class="section-item-content <?= $ block ->escapeHtmlAttr ($ groupCss ) ?> -item-content"
36
36
id="<?= $ block ->escapeHtmlAttr ($ alias ) ?> "
37
- data- role="content ">
37
+ role="tab ">
38
38
<?= /* @noEscape */ $ html ?>
39
39
</div>
40
40
<?php endforeach ;?>
You can’t perform that action at this time.
0 commit comments