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

1230 Make Header/Footer Logo Accessible #1259

Merged
merged 2 commits into from
Mar 17, 2024
Merged

Conversation

eburdekin
Copy link
Member

@eburdekin eburdekin commented Mar 15, 2024

Fixes #1230

Changes made

  • Added aria-label to link els (image and text) describing each link as 'Expunge Assist home'
  • Screen reader now says "Visit link: Expunge Assist home" upon navigating to either image or text logo

Reason for changes

  • Screen readers use aria-labels and alt attributes to identify the selected element to the user. Because the Header and Footer Logos link to the Landing page dynamically and the image doesn't have alt text, Screen Readers don't know what to call these links.

@eburdekin eburdekin changed the title Make Header/Footer Logo Accessible 1230 Make Header/Footer Logo Accessible Mar 15, 2024
Copy link
Member

@sydneywalcoff sydneywalcoff left a comment

Choose a reason for hiding this comment

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

@eburdekin Thanks for such a quick turnaround on this!

Not a problem with your code, but the legacy code here is sloppy in how it separates the logo from the text in the header. I'll have to make an issue refactoring this.

In the meantime, can you add an aria-label with the same text to the EA text part of the logo in the header? Currently it just reads the EA text which isn't as clear as what you added to the image part of the logo.

@eburdekin
Copy link
Member Author

@sydneywalcoff thanks for reviewing! All sounds good - happy to take a crack at creating the issue to refactor the code if that'd be helpful.

@eburdekin eburdekin added the ready for dev lead task ready for dev lead to evaluate label Mar 17, 2024
Copy link
Member

@sydneywalcoff sydneywalcoff left a comment

Choose a reason for hiding this comment

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

@eburdekin Thank you for making the change!

@sydneywalcoff sydneywalcoff merged commit 1b894c0 into dev Mar 17, 2024
@sydneywalcoff sydneywalcoff mentioned this pull request Mar 17, 2024
@eburdekin eburdekin deleted the 1230-header-footer-A11y branch April 17, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for dev lead task ready for dev lead to evaluate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants