Skip to content

Commit

Permalink
Wrapping svg inside a span to accommodate custom SVGs [TMZ-246](#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
mserino authored Dec 17, 2024
1 parent 37a341e commit 52c6321
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions modules/template-parts/classes/render/widget-header-render.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,15 @@ private function render_menu_toggle() {

?>
<button <?php $this->widget->print_render_attribute_string( 'button-toggle' ); ?>>
<?php
Icons_Manager::render_icon( $toggle_icon,
[
'aria-hidden' => 'true',
'class' => 'ehp-header__toggle-icon ehp-header__toggle-icon--open',
'role' => 'presentation',
]
);
?>
<span class="ehp-header__toggle-icon ehp-header__toggle-icon--open" aria-hidden="true">
<?php
Icons_Manager::render_icon( $toggle_icon,
[
'role' => 'presentation',
]
);
?>
</span>
<i class="eicon-close ehp-header__toggle-icon ehp-header__toggle-icon--close"></i>
<span class="elementor-screen-only"><?php esc_html_e( 'Menu', 'hello-plus' ); ?></span>
</button>
Expand Down

0 comments on commit 52c6321

Please sign in to comment.