Skip to content

Commit

Permalink
Intro text should be hidden initially
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Sep 17, 2024
1 parent 013421e commit 6e5f9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/experimental/script-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function gutenberg_a11y_script_module_html() {
return;
}
echo '<div style="position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);clip-path: inset(50%);border: 0;word-wrap: normal !important;">'
. '<p id="a11y-speak-intro-text" class="a11y-speak-intro-text">' . esc_html__( 'Notifications', 'default' ) . '</p>'
. '<p id="a11y-speak-intro-text" class="a11y-speak-intro-text" hidden>' . esc_html__( 'Notifications', 'default' ) . '</p>'
. '<div id="a11y-speak-assertive" class="a11y-speak-region" aria-live="assertive" aria-relevant="additions text" aria-atomic="true"></div>'
. '<div id="a11y-speak-polite" class="a11y-speak-region" aria-live="polite" aria-relevant="additions text" aria-atomic="true"></div>'
. '</div>';
Expand Down

0 comments on commit 6e5f9b4

Please sign in to comment.