Skip to content

Commit

Permalink
Merge pull request #4053 from Codeinwp/fix/menu_dropdown_aria
Browse files Browse the repository at this point in the history
fix: menu dropdown aria attribute #4020
  • Loading branch information
cristian-ungureanu authored Aug 2, 2023
2 parents 9aa9879 + 7b28755 commit 71e706e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/views/nav_walker.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function add_caret( $title, $item, $args, $depth ) {
$expand_dropdowns = apply_filters( 'neve_first_level_expanded', false );
$additional_class = $expand_dropdowns && $depth === 0 ? 'dropdown-open' : '';

$caret = '<button ' . $expanded . ' type="button" class="caret-wrap navbar-toggle ' . esc_attr( (string) $item->menu_order ) . ' ' . esc_attr( $additional_class ) . '" style="' . esc_attr( $caret_wrap_css ) . '">';
$caret = '<button ' . $expanded . ' type="button" class="caret-wrap navbar-toggle ' . esc_attr( (string) $item->menu_order ) . ' ' . esc_attr( $additional_class ) . '" style="' . esc_attr( $caret_wrap_css ) . '" aria-label="' . __( 'Toggle', 'neve' ) . ' ' . wp_filter_nohtml_kses( $title ) . '">';
$caret .= $caret_pictogram;
$caret .= '</button>';

Expand Down

0 comments on commit 71e706e

Please sign in to comment.