-
Notifications
You must be signed in to change notification settings - Fork 130
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
ImageInput accessibility improvements #1644
Conversation
Hey @amelako, Thanks! |
🦋 Changeset detectedLatest commit: e497fa2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## main #1644 +/- ##
=======================================
Coverage 91.54% 91.54%
=======================================
Files 195 195
Lines 4080 4081 +1
Branches 1296 1253 -43
=======================================
+ Hits 3735 3736 +1
- Misses 326 327 +1
+ Partials 19 18 -1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening the draft! Early thoughts here
@@ -49,3 +49,17 @@ There are some caveats with this approach: | |||
### Using a div element | |||
|
|||
<Story id="forms-imageinput--custom-component-div" /> | |||
|
|||
## Accessibility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm noticing other issues when using the ImageInput with Firefox and VoiceOver. Can you share your findings from SR testing so we can compare what we found and address any problems?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved it to polite after testing in isolation on storybook with Firefox,Chrome and VoiceOver. I will add recordings as reference. Let me know if you have any more findings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attaching here the recording with Firefox and VoiceOver. For some reason after my Chrome update the screen reader stopped announcing message completely when I tested in isolation. Let me know if you can try on your side and let me know the result.
Screen.Recording.2022-07-15.at.15.36.56.mov
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue I saw (and I'm seeing it in your recording as well) is that when selecting a file, focus seems to be brought to the window
, and the loading label is not announced (but that might also be because there's no live region there either 😅)
Fixing this would probably require more research though. I don't mind going ahead with this PR in the meantime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can sync on later then on this and the docs.
@@ -49,3 +49,17 @@ There are some caveats with this approach: | |||
### Using a div element | |||
|
|||
<Story id="forms-imageinput--custom-component-div" /> | |||
|
|||
## Accessibility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue I saw (and I'm seeing it in your recording as well) is that when selecting a file, focus seems to be brought to the window
, and the loading label is not announced (but that might also be because there's no live region there either 😅)
Fixing this would probably require more research though. I don't mind going ahead with this PR in the meantime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thank you for improving this 🙌
Would you mind creating a new issue for investigating why focus is moved to the body after selecting an image? (comment ref)
@amelako was there anything else missing before we can merge this? I'd love to release it! 🙂 |
No stoppers, it can be merged. Will do it now. :) |
Thanks. I also created #1705 as mentioned in a comment above. |
Purpose
Approach and changes
Note: Currently there is an issue with VoiceOver on Mac, aria-live content is read twice for the live regions inside iframes
Definition of done