Support aria-errormessage#16411
Merged
Merged
Conversation
…oved documentation
… inputs are marked invalid
Collaborator
|
Thanks Sascha for adding support for this. Actually this does not need an opt out option at all, for example we don't provide such an option for things like aria describedby or aria description or role:alert messages and it is still totally fine. The error message as far as I understand appears after an action has been perfomed, such as focus change or wrong data entered into a field. It is possible to stop the reporting of error message by pressing the control key. |
seanbudd
reviewed
Apr 18, 2024
seanbudd
left a comment
Member
There was a problem hiding this comment.
Nice work @SaschaCowley - just a few minor things
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
Member
|
Could you move the changes to the new changes.md for this PR please? |
Moved changelog entry to changes.md
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Closes #8318
Summary of the issue:
Currently, NVDA does not read error messages referenced with
aria-errormessageandaria-invalid(or platform native invalid).Description of user facing changes
Error messages referenced by
aria-errormessageare reported in speech and Braille on nodes marked as invalid.Description of development approach
NVDAObjects have a new property,
errorMessage, which is retrieved via theerrorIA2 relation. For virtual buffers, this is done in the virtual buffer backend and stored in the virtual buffer node. For focus mode, this is done at call-time.Testing strategy:
Manual testing in Google Chrome and Mozilla Firefox using this Codepen and other test pages. System tests that run in Chrome have also been provided.
Known issues with pull request:
Code Review Checklist: