fix: handle dynamic content case by case #4905
Draft
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.
Summary | Résumé
The current strategy for handling dynamic content in a form has been to use a parent live-region. While this technically works it makes dynamic updates for AT very verbose resulting in bad UX. For example, when a large show-hide block is shown, all the content is announced. Or if a dropdown is dynamically populated with a large list, the entire list is read out on load.
The proposed solution is to handle each type (component) of dynamic update on a case by case basis. For example, if some text is dynamically added to the form, like an inline success message, use a live-region. If a block of code is shown, use the disclosure pattern. And so on.
How each case was handled
file bug?send them another email?). May fail WCAG but the accessibility community has argued for this pattern adrianroselli, smhigley,...