Home Page › Forums › Porto | Multi-Purpose & WooCommerce Theme › Feature Request › Reply To: Feature Request
March 26, 2024 at 9:24 am
#5836
Google PageSpeed is complaining about accordion menu item “arrows” having being described with role=”button”, but has no accessible name.
Specifically, adding code to line 1261 of inc/menu/menu.php can resolve this.
e.g.
$output .= “\n$indent<span class=\”arrow\” role=\”button\”></span><ul class=\”sub-menu\”>\n”;
Becomes
$output .= “\n$indent<span class=\”arrow\” role=\”button\” aria-label=\”Sub menu\”></span><ul class=\”sub-menu\”>\n”;
Thank you.