Issue label descriptions are read three times by screen readers #213004
Replies: 3 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
It looks like the same label description is being exposed to VoiceOver three different ways: As part of the label's accessible name. Because all three contain the same text, VoiceOver reads the description multiple times. A possible fix would be to expose the description only once. For example, keep the label name as the accessible name and use a single aria-describedby reference for the description, while removing the duplicate description from the tooltip or hidden text. That way a screen reader would announce: known-issue, A known problem with a fix planned instead of repeating the description several times. Based on the markup you shared, this appears to be a real accessibility issue rather than expected behavior. |
|
@Alexrydder thank you for sharing this feedback. I logged an issue with it so our team can review. If/when I have an update, we'll post back in this discussion. Appreciate the patience! |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Issues
Body
Hi, I'm a blind developer and I use VoiceOver on Mac and iPhone every day. When I go through the labels on an issue page, VoiceOver reads each label's description three times. For a label called known-issue with the description "A known problem with a fix planned", I hear:
It makes the labels section really slow to get through, and it gets worse with every label on the issue.
I looked at the page source and I think I see why. The label link has a visually hidden span with the description inside it, so the description becomes part of the link name. The same link then has aria-describedby pointing to that same hidden span and also to the tooltip span, which has the description again. So you get it once in the name and twice as the description.
Here's the markup from one label, shortened:
To see it, open any issue that has a label with a description, for example a labeled issue on anthropics/claude-code, and move through the labels with a screen reader.
I'd expect to hear the label name once and the description once, either as part of the name or as the description, not both.
For now I took the descriptions off the labels in my own org's repo so our users don't hear this, but I'd like to put them back once it's fixed.
Thanks!
All reactions