-
Notifications
You must be signed in to change notification settings - Fork 9
Added accessible announcement for the TextAnnotatorPopup appearance
#141
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
base: main
Are you sure you want to change the base?
Added accessible announcement for the TextAnnotatorPopup appearance
#141
Conversation
This reverts commit fc9bc7a
2c1a1da to
1b6c1fe
Compare
…ncement # Conflicts: # package-lock.json # packages/text-annotator-react/package.json # packages/text-annotator-react/src/TextAnnotatorPopup/TextAnnotatorPopup.tsx # packages/text-annotator-react/src/hooks/index.ts
…ncement # Conflicts: # packages/text-annotator-react/src/TextAnnotatorPopup/TextAnnotatorPopup.tsx
…ncement # Conflicts: # package-lock.json # packages/text-annotator-react/package.json
…ncement # Conflicts: # package-lock.json # packages/text-annotator-react/package.json # packages/text-annotator-react/src/TextAnnotatorPopup/TextAnnotatorPopup.tsx
…ncement # Conflicts: # package-lock.json # packages/text-annotator-react/package.json
…ncement # Conflicts: # package-lock.json # packages/text-annotator-react/package.json
# Conflicts: # package-lock.json # packages/text-annotator-react/package.json # packages/text-annotator-react/src/TextAnnotatorPopup/TextAnnotatorPopup.tsx
# Conflicts: # packages/text-annotator-react/src/TextAnnotatorPopup/TextAnnotatorPopup.tsx
# Conflicts: # package-lock.json # packages/text-annotator-react/package.json # packages/text-annotator-react/src/TextAnnotatorPopup/TextAnnotatorPopup.tsx
# Conflicts: # package-lock.json # packages/text-annotator-react/package.json # packages/text-annotator-react/src/TextAnnotationPopup/TextAnnotationPopup.tsx
# Conflicts: # package-lock.json # packages/text-annotator-react/package.json # packages/text-annotator-react/src/TextAnnotationPopup/TextAnnotationPopup.tsx
|
I discovered that enabling this hook on the popup breaks the Mac's "Look up %word%" feature: look_up_broken.mp4 |
# Conflicts: # package-lock.json # packages/text-annotator-react/package.json
|
Hi @oleksandr-danylchenko, I notice this PR is still in draft. What's the status on this? Is this work still ongoing? |
|
@rsimon, I'd say that this is a PR in a limbo state of "things we'd like to have, but don't care enough to prioritize them yet". Although if it's smth that would be important for you, I believe that I can negotiate bringing the task higher. |
|
Got it, thanks. Not essential for us right now either. Let's leave it open as-is, then. |
Relations
Issue
When the
TextAnnotatorPopupappears during the keyboard selection, the focus isn't immediately shifted to it (reason). Instead, a user should explicitly Tab to enter into it.However, there's no way to know when or whether the popup appeared for the screen reader users.
Suggestion
A navigation hint message should be explicitly announced using the live area. The message should appear after a user idles for at least
700msto prevent it from being interrupted by system announcements. The hint should be announced once per selection so as not to be too annoying.Changes Made
@react-aria/live-announcerdependency (source), that allows to announce arbitrary messages on the page conveniently.messageconfigurable.Relations
This PR depends on the Keyboard Selection Support one - #118. Therefore, it includes all of its changes within.