-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(file-upload): add aria-live - FRONT-4318 #3305
Conversation
@@ -128,6 +128,7 @@ export class FileUpload { | |||
|
|||
// Update file list | |||
this.fileUploadList.innerHTML = fileList; | |||
this.fileUploadList.setAttribute('aria-live', 'polite'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just to be sure we are really doing somethign beneficial for the accessibility, i went reading the docs and i see that:
The aria-live attribute is set on an empty element. When an update to the page occurs, the empty element with that aria-live attribute should be updated with a brief announcement informing the user an update has been made.
So i wonder, shouldn't this be set initially, before we populate the list, so that when the list is populated the new content will be announced..? If the request was explicitely expecting this when the content it's added, forget about this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't fully know how the aria-live attribute works.. I'll ask Regine
aria-live
to the file list