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

Alt text #1585

Closed
wants to merge 14 commits into from
Closed

Alt text #1585

wants to merge 14 commits into from

Conversation

simk209
Copy link
Collaborator

@simk209 simk209 commented Jul 24, 2024

Summary

Improved alt text for most components. Eliminating decorative image alt text and using translation hook. Also added a11y linting rule to check for bigger errors like missing alt text/redundant alt text.

Did NOT yet address issues listed here: https://docs.google.com/document/d/1NEkonYj-Ee7AXIrzlBhM8k0EBc2OmN8qG7Ga48lRrKc/edit

#1574

Checklist

  • Added a linting rule for alt text
  • All images have alt text
  • Decorative images do not have alt text

Screenshots

Known issues

  • Alt text for LearnComponents is buggy. Does not seem to be reading from the homepage translation file.
  • Similar bug with Avatar in NavBarComponents. It is not reading from the profile json.

Other Blocks

  • Not addressing issues listed in the google doc (linkedin in summary). I am having trouble finding the svgs to add alt text to. I believe that the oppose/neutral/endorse icons correspond to TestimonyCount in BillHit.tsx, but I am unsure how to add alt text to those icons.

Steps to test/reproduce

Known issue 1:
npm run dev. Go to the Learn page and use devtools to inspect the alt text for the "who", "what", etc images.

Known issue 2:
Inspect the profile image in the navBar.

Other Accessibility Considerations

I am not sure if the Bill Tracker section within the Bill Details page is accessible to people relying on screen readers.

Copy link

vercel bot commented Jul 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
maple-dev ❌ Failed (Inspect) Sep 18, 2024 0:34am

@simk209 simk209 marked this pull request as draft August 20, 2024 23:54
"partnerLogos":{
"NuLaw": "Northeastern School of Law Logo",
"CodeForBoston": "Code for Boston Logo",
"OpenCollective":"Open Collective Logo"
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Since this PR opened, we moved to Partners in Democracy - we may want to cover that as well.

@simk209 simk209 marked this pull request as ready for review September 17, 2024 23:49
added comma
@Mephistic
Copy link
Collaborator

Closing in favor of #1624 - that PR contains these changes and resolves some dependency issues

@Mephistic Mephistic closed this Oct 2, 2024
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.

3 participants