Update elementor pro
This commit is contained in:
@@ -1433,7 +1433,7 @@ class Nav_Menu extends Base_Widget {
|
||||
|
||||
// Determine the submenu icon markup.
|
||||
if ( Plugin::elementor()->experiments->is_feature_active( 'e_font_icon_svg' ) ) {
|
||||
$icon_classes = [];
|
||||
$icon_classes = [ 'aria-hidden' => 'true' ];
|
||||
|
||||
if ( false !== strpos( $frontend_settings['submenu_icon']['value'], 'chevron-down' ) ) {
|
||||
$icon_classes['class'] = 'fa-svg-chevron-down';
|
||||
@@ -1441,7 +1441,7 @@ class Nav_Menu extends Base_Widget {
|
||||
|
||||
$icon_content = Icons_Manager::render_font_icon( $frontend_settings['submenu_icon'], $icon_classes );
|
||||
} else {
|
||||
$icon_content = sprintf( '<i class="%s"></i>', $frontend_settings['submenu_icon']['value'] );
|
||||
$icon_content = sprintf( '<i class="%s" aria-hidden="true"></i>', esc_attr( $frontend_settings['submenu_icon']['value'] ) );
|
||||
}
|
||||
|
||||
// Passing the entire icon markup to the frontend settings because it can be either <i> or <svg> tag.
|
||||
|
||||
Reference in New Issue
Block a user