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

[CaseStudiesSection] Avatars are missing alternative text (accessibility bug) #788

Open
ashleemboyer opened this issue Jun 1, 2024 · 0 comments

Comments

@ashleemboyer
Copy link

Bug report

Current Behavior

  1. Go to https://www.radix-ui.com/primitives
  2. Open Chrome DevTools
  3. Open the Elements panel
  4. Locate the "Case Studies World-class teams use Radix Primitives to power their products" section
  5. Locate the two avatar img elements
  6. Open the Accessibility panel
  7. See that each element does not have an Accessible Name, like pictured:

Expected behavior

The images should both have an Accessible Name.

Suggested solution

The aria-describedby property is used for computing an Accessible Description. The elements that are being referenced in aria-describedby should actually be referenced by aria-labelledby.

These appear to be the two lines of code that need updated:

aria-describedby="person1"

aria-describedby="person2"

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

No branches or pull requests

1 participant