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

Enhance uploaded file status text read by screenreaders #854

Open
ggeisler opened this issue Jun 2, 2022 · 0 comments
Open

Enhance uploaded file status text read by screenreaders #854

ggeisler opened this issue Jun 2, 2022 · 0 comments
Labels
a11y Accessibility issue

Comments

@ggeisler
Copy link
Contributor

ggeisler commented Jun 2, 2022

Related to PR #853. In that PR I added "Type of file: " to the existing visually-hidden uploaded file status text:

<span class="visually-hidden">Type of file: <%= file.pod_metadata_status %></span>

That appears in the first column of the Upload activity (Activity page) and Uploaded files (Provider home) tables.

Screen Shot 2022-06-01 at 5 06 36 PM


However, the file.pod_metadata_status value is not informative enough for a screenreader user. The current values are one-word values like "unknown" and "success". To help the screenreader user who doesn't have visual access to the file status icon legend above the table, we should use the legend values for file.pod_metadata_status.

In other words, for a file that currently has a rendered value of success it should instead be Valid MARC (adds, updates, or deletes) so the screenreader user hears "Type of file: Valid MARC (adds, updates, or deletes)".

@ggeisler ggeisler added the a11y Accessibility issue label Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Accessibility issue
Projects
Status: No status
Development

No branches or pull requests

1 participant