EDSC 3075-Fix 508 compliance 'element must contain ALT attribute' #1373
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
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.
Reproduction steps
Attachments
Please include relevant screenshots or files that would be helpful in reviewing and verifying this change.
Checklist