diff --git a/src/wp-content/themes/twentytwenty/assets/js/index.js b/src/wp-content/themes/twentytwenty/assets/js/index.js
index 0a64fd98ba..1bda2362bc 100644
a
|
b
|
twentytwentyDomReady( function() { |
678 | 678 | /* Toggle an attribute ----------------------- */ |
679 | 679 | |
680 | 680 | function twentytwentyToggleAttribute( element, attribute, trueVal, falseVal ) { |
681 | | if ( element.classList.contains( 'close-search-toggle' ) ) { |
| 681 | if ( element.classList.contains( 'skip-aria-expanded' ) ) { |
682 | 682 | return; |
683 | 683 | } |
684 | 684 | if ( trueVal === undefined ) { |
diff --git a/src/wp-content/themes/twentytwenty/header.php b/src/wp-content/themes/twentytwenty/header.php
index d85a9700e2..86806b8c0f 100644
a
|
b
|
|
45 | 45 | |
46 | 46 | ?> |
47 | 47 | |
48 | | <button class="toggle search-toggle mobile-search-toggle" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field" aria-expanded="false"> |
| 48 | <button class="toggle search-toggle mobile-search-toggle skip-aria-expanded" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field"> |
49 | 49 | <span class="toggle-inner"> |
50 | 50 | <span class="toggle-icon"> |
51 | 51 | <?php twentytwenty_the_theme_svg( 'search' ); ?> |
… |
… |
|
151 | 151 | |
152 | 152 | <div class="toggle-wrapper search-toggle-wrapper"> |
153 | 153 | |
154 | | <button class="toggle search-toggle desktop-search-toggle" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field" aria-expanded="false"> |
| 154 | <button class="toggle search-toggle desktop-search-toggle skip-aria-expanded" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field"> |
155 | 155 | <span class="toggle-inner"> |
156 | 156 | <?php twentytwenty_the_theme_svg( 'search' ); ?> |
157 | 157 | <span class="toggle-text"><?php _ex( 'Search', 'toggle text', 'twentytwenty' ); ?></span> |
diff --git a/src/wp-content/themes/twentytwenty/template-parts/modal-search.php b/src/wp-content/themes/twentytwenty/template-parts/modal-search.php
index 32f9b51a0c..581e578e5e 100644
a
|
b
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | ?> |
11 | | <div class="search-modal cover-modal header-footer-group" data-modal-target-string=".search-modal"> |
| 11 | <div class="search-modal cover-modal header-footer-group" data-modal-target-string=".search-modal" data-untoggle-on-escape="true" role="dialog" tabindex="-1"> |
12 | 12 | |
13 | 13 | <div class="search-modal-inner modal-inner"> |
14 | 14 | |
… |
… |
|
22 | 22 | ); |
23 | 23 | ?> |
24 | 24 | |
25 | | <button class="toggle search-untoggle close-search-toggle fill-children-current-color" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field"> |
| 25 | <button class="toggle search-untoggle close-search-toggle fill-children-current-color skip-aria-expanded" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field"> |
26 | 26 | <span class="screen-reader-text"><?php _e( 'Close search', 'twentytwenty' ); ?></span> |
27 | 27 | <?php twentytwenty_the_theme_svg( 'cross' ); ?> |
28 | 28 | </button><!-- .search-toggle --> |