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

Improving accessibility of the ds-loading component #3099

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

Andrea-Guevara
Copy link
Contributor

@Andrea-Guevara Andrea-Guevara commented Jun 4, 2024

References

Description

In the ds-loading component I added the attribute aria-live=“polite” to the label and to the div containing the “spinner” conditional. In the div containing the “loading balls” I added the attribute aria-hidden=“true”. Based on my research, the aria-live=“polite” attribute tells screen readers that dynamic content can be updated, but is not urgent. This is useful for status messages or informational updates that don't require immediate interruption. And the aria-hidden=“true” attribute hides non-relevant content from screen readers. Such as spans within the loader that have no useful information.

These changes improve the experience of screen reader users by ensuring that only relevant information is announced and that dynamic updates are communicated appropriately.

Instructions for Reviewers

Go to the ds-loading component, see that in the “label” and in the div with the “spinner” conditional the aria-live=“polite” attribute has been added and in the div with the “loading” class the aria-hidden=“true” attribute has been added.

List of changes in this PR:

  • Addition of the aria-live=“polite” attribute to the “label” and the div containing the “spinner” conditional.
  • Addition of the aria-hidden=“true” attribute to the div containing the loading balls.

Include guidance for how to test or review your PR.

Use a screen reader, click on any link or button intended to load content.

@tdonohue tdonohue added bug i18n / l10n Internationalisation and localisation, related to message catalogs 1 APPROVAL pull request only requires a single approval to merge port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release accessibility and removed i18n / l10n Internationalisation and localisation, related to message catalogs labels Jun 4, 2024
@tdonohue tdonohue changed the title Melhorando acessibilidade do componente ds-loading Improving accessibility of the ds-loading component Jun 14, 2024
Copy link
Member

@tdonohue tdonohue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks @Andrea-Guevara ! This looks good to me. Tested it with Chrome's screen reader and it is now announcing the ds-loading content.

@tdonohue tdonohue added this to the 8.0 milestone Jun 14, 2024
@tdonohue tdonohue merged commit 4e93255 into DSpace:main Jun 14, 2024
13 checks passed
@dspace-bot
Copy link
Contributor

Successfully created backport PR for dspace-7_x:

@tdonohue tdonohue removed the port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 APPROVAL pull request only requires a single approval to merge accessibility bug
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants