announce image upload success via aria live (#15650)

This commit is contained in:
Suzanne Aitchison 2021-12-02 12:46:33 +00:00 committed by GitHub
parent 842e18a0fc
commit 6a7b9361db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -397,7 +397,11 @@ export const ImageUploader = ({
return (
<Fragment>
<div id="upload-success-info" className="screen-reader-only" />
<div
id="upload-success-info"
aria-live="polite"
className="screen-reader-only"
/>
{editorVersion === 'v2' ? (
<V2EditorImageUpload