Skip to content

Conversation

sergiou87
Copy link
Member

@sergiou87 sergiou87 commented Aug 19, 2024

xref. https://github.com/github/accessibility-audits/issues/8588?reload=1?reload=1

Description

This PR just uses the existing aria live region in our diffs to announce when the user expands it. The biggest challenge here was to make this work with the existing live messages related to text search.

I added a private variable as a signal to tell our AriaLiveContainer when it has to re-read the message even if the text is the same (using the trackUserInput prop).

Screenshots

CleanShot.2024-08-19.at.13.25.58.mp4

Release notes

Notes: [Improved] Use screen reader to announce when users expands the current diff

@sergiou87 sergiou87 marked this pull request as ready for review August 19, 2024 11:30
@sergiou87 sergiou87 merged commit c694b33 into development Aug 21, 2024
7 checks passed
@sergiou87 sergiou87 deleted the announce-expanded branch August 21, 2024 03:40
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.

2 participants