Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove extra fallback
  • Loading branch information
sirreal committed Sep 17, 2024
commit 85a7d02f34c6f1adf32e710b4ddf34717b86d9d2
12 changes: 2 additions & 10 deletions packages/interactivity-router/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,16 +394,8 @@ function a11yAnnounce(
if ( globalThis.IS_GUTENBERG_PLUGIN ) {
import( '@wordpress/a11y' ).then(
( { speak } ) => speak( message, ariaLive ),
// Use the fallback Interactivity API implementation if the a11y
// Script Module cannot be loaded.
() => {
state.navigation.message =
// Announce that the page has been loaded. If the message is the
// same, we use a no-break space similar to the @wordpress/a11y
// package: https://github.com/WordPress/gutenberg/blob/c395242b8e6ee20f8b06c199e4fc2920d7018af1/packages/a11y/src/filter-message.js#L20-L26
message +
( state.navigation.message === message ? '\u00A0' : '' );
}
// Ignore failures to load the a11y module.
() => {}
);
} else {
state.navigation.message =
Expand Down