DOI-ONRR / onrr.gov-site

We will use this repo to manage our work on the onrr.gov website
11 stars 3 forks source link

Research if ambiguous link alerts in ANDI is an accessibility issue #3323

Open AlexandracmONRR opened 4 days ago

AlexandracmONRR commented 4 days ago

href has been updated, but is there another problem that has to be corrected?

image.png
AlexandracmONRR commented 4 days ago

Warning Alerts signal that screen reader inconsistencies are likely or information on the page may not be communicated consistently to all users. https://www.ssa.gov/accessibility/andi/help/alerts.html

image.png
AlexandracmONRR commented 4 days ago

I believe the aria labels should include the unique name of each PDF, word doc, powerpoint files.

image.png
AlexandracmONRR commented 4 days ago

Not a problem for other PDFs on preview site:

image.png
AlexandracmONRR commented 4 days ago

@lpgoldstein - I want to get your take on this, here is my takeaway:

For PDFs on onrr.gov the aria label is considered the "accessible name", so when the aria label is the same as other aria labels but the href is unique, it is flagging it as an issue. The aria label should be unique if the href is unique.

This is not coming up as an issue for PDFs that do not have an aria label, because the "Inner text" is what is being read by the screen reader.

I think the solution for this is that the aria labels are changed to have the document's name, so that the aria labels are descriptive of the PDF. Also, any PDF that has the same href, should also have the same aria label.

lpgoldstein commented 2 days ago

@AlexandracmONRR That makes sense to me. I appreciate the time you took to look into this.