Skip to content

Commit

Permalink
Site editor: Remove screen reader title announcement.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstine committed Nov 15, 2023
1 parent e131e6e commit 7eec8a9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/edit-site/src/components/routes/use-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useEffect, useRef } from '@wordpress/element';
import { useSelect } from '@wordpress/data';
import { store as coreStore } from '@wordpress/core-data';
import { __, sprintf } from '@wordpress/i18n';
import { speak } from '@wordpress/a11y';
import { decodeEntities } from '@wordpress/html-entities';
import { privateApis as routerPrivateApis } from '@wordpress/router';

Expand Down Expand Up @@ -45,16 +44,6 @@ export default function useTitle( title ) {
);

document.title = formattedTitle;

// Announce title on route change for screen readers.
speak(
sprintf(
/* translators: The page title that is currently displaying. */
__( 'Now displaying: %s' ),
document.title
),
'assertive'
);
}
}, [ title, siteTitle, location ] );
}

0 comments on commit 7eec8a9

Please sign in to comment.