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

fix: set aria-live to textarea in a11y mode #5221

Closed
wants to merge 4 commits into from

Conversation

akoreman
Copy link
Contributor

@akoreman akoreman commented Jun 27, 2023

Issue #, if available: NA

Description of changes: In some browsers, some screen readers don't pick up changes we make to the textarea resulting in the screen reader not reading lines when navigating up/down. Trying whether seting aria-live to the textarea to explicitly tell the screen reader to read the full line when cursor changes is an improvement and whether is has drawbacks.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Jun 27, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (a6c8bf3) 87.22% compared to head (9847e6a) 87.22%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5221   +/-   ##
=======================================
  Coverage   87.22%   87.22%           
=======================================
  Files         565      565           
  Lines       45253    45253           
  Branches     6927     6929    +2     
=======================================
  Hits        39471    39471           
  Misses       5782     5782           
Flag Coverage Δ
unittests 87.22% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/keyboard/textinput.js 77.44% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@akoreman akoreman marked this pull request as draft June 27, 2023 23:29
@akoreman
Copy link
Contributor Author

This does make screen readers which currently ignore text area content read it, but is has some drawbacks. Some screen readers now read content twice. Whether this is a better place to be than what we have currently is up to opinion. Something like #5225 might be a better way to go, but does require riskier changes.

@akoreman
Copy link
Contributor Author

akoreman commented Jul 4, 2023

Closing this PR since #5225 seems to be a better way to improve this.

@akoreman akoreman closed this Jul 4, 2023
@akoreman akoreman deleted the textarea_aria_live branch July 5, 2023 12:23
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.

1 participant