Skip to content
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

Merged
merged 5 commits into from
Apr 19, 2024

Conversation

emeryro
Copy link
Contributor

@emeryro emeryro commented Mar 25, 2024

  • add aria-live to the file list

Copy link

github-actions bot commented Mar 25, 2024

@github-actions github-actions bot temporarily deployed to pull request March 25, 2024 08:51 Inactive
@@ -128,6 +128,7 @@ export class FileUpload {

// Update file list
this.fileUploadList.innerHTML = fileList;
this.fileUploadList.setAttribute('aria-live', 'polite');
Copy link
Collaborator

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

Copy link
Contributor Author

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

@github-actions github-actions bot temporarily deployed to pull request April 11, 2024 11:28 Inactive
@github-actions github-actions bot temporarily deployed to pull request April 11, 2024 11:50 Inactive
@github-actions github-actions bot temporarily deployed to pull request April 17, 2024 06:28 Inactive
@planctus planctus merged commit 15f8715 into v4-dev Apr 19, 2024
7 checks passed
@planctus planctus deleted the FRONT-4318-acc-file-upload-live branch April 19, 2024 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants