Skip to content

Commit

Permalink
Add role="menuitem"
Browse files Browse the repository at this point in the history
  • Loading branch information
MWDelaney committed Sep 3, 2020
1 parent 15a06ed commit 0751a03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bootstrap4-navwalker.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
// For items in dropdowns use .dropdown-item instead of .nav-link.
if ($depth > 0) {
$atts['class'] = 'dropdown-item';
$atts['role'] = 'menuitem';
} else {
$atts['class'] = 'nav-link';
}
Expand Down

0 comments on commit 0751a03

Please sign in to comment.