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

EDSC 3075-Fix 508 compliance 'element must contain ALT attribute' #1373

Closed
wants to merge 2 commits into from

Conversation

Chauncy-S
Copy link
Contributor

Overview

What is the feature?

This is a fix for a 508 Compliance issue/task to add text to all A elements or an IMG with an ALT attribute. see #1368.

What is the Solution?

Since each A element already had text and they weren't images, the solution was to add an 'aria-labelledby' attribute to all of the A elements listed in the given picture from the issue. I followed the Sort sites accessibilities checkpoint page based of the provided error from the picture/text. Link: https://www.powermapper.com/products/sortsite/rules/acchtmllinktextblank/

What areas of the application does this impact?

All of the A elements within

near the bottom of body.html.

Testing

I tried to make changes to the 'span' elements that contain the anchor tags by taking out the text between the anchor tag to see if a screen reader would pick it up but even if I took out the text the page would still render with the same text it was originally supposed. For example, even if I took out NASA Privacy Policy, the site would still render it to say NASA Privacy Policy like in the picture below even though the HMTL file was updated.

image

Reproduction steps

  • Environment for testing:
  • Collection to test with:
  1. Step 1
  2. Step 2...

Attachments

Please include relevant screenshots or files that would be helpful in reviewing and verifying this change.

Checklist

  • I have added automated tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@Chauncy-S Chauncy-S changed the title EDSC 3075 EDSC 3075-Fix 508 compliance 'element must contain ALT attribute' Apr 24, 2021
Copy link
Member

@abbottry abbottry left a comment

Choose a reason for hiding this comment

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

@Chauncy-S there are a lot of formatting changes here, spaces turned into tabs and no-longer aligned start and end blocks. Please take a pass at formatting.

Also, I'm seeing things like data - show - fbm="true" which is invalid code and would fail at run time and test time. Please ensure you've tested your changes locally through the browser as well as by running the tests.

A nice confirmation of this ticket would be a screenshot of the 508 tool showing these items no longer being an issue.

@Chauncy-S
Copy link
Contributor Author

Chauncy-S commented Apr 26, 2021 via email

@Chauncy-S Chauncy-S closed this May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants