Improved focus trapping. Focus trapping now also happens backwards.

This commit is contained in:
Frank419
2024-08-28 10:13:28 +08:00
parent 2067cd62f8
commit 36b1de5efc
3 changed files with 10 additions and 1 deletions
+1
View File
@@ -89,6 +89,7 @@ $label = get_theme_mod( 'minimalistflex_header_label' );
</h1>
<?php endif; ?>
<div class="spacer"></div>
<a id="minimalistflex-menu-focus-hack-2" href="#minimalistflex-menu-focus-hack-2" aria-label="<?php esc_attr_e( 'This element sends you to the last menu item.', 'minimalistflex' ) ?>"></a>
<?php if ( has_nav_menu( 'main-menu' ) ): ?>
<button id="menu-toggle" aria-label="<?php esc_attr_e( 'Toggle navigation dropdown', 'minimalistflex' ) ?>">
<i id="menu-toggle-icon"></i>