-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
feat: Announce offline status #57178
Conversation
Attempt to better communicate the Hook intent.
Prior to making the asynchronous request to the host app across the bridge, it is a better UX to presume network connectivity is present rather than displaying network connectivity messages briefly.
Hoist the `OfflineStatus` indicator from the block list to the editor. The block list is leveraged for inner blocks, which means it rendered nested `OfflineStatus` indicators for blocks with inner blocks. Additionally, the `editor` package feels like an appropriate location for the offline detection component.
Improve the UX for screen reader users by announcing the state of network connectivity whenever it changes.
Size Change: 0 B Total Size: 1.69 MB ℹ️ View Unchanged
|
Flaky tests detected in 683a122. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7262562263
|
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 was able to successfully test network connectivity status via accessibility settings for both iOS and Android. 🚀
Also, thank you for adding tests. 🙇
What?
Announce offline status when network connectivity is lost.
Why?
Fix wordpress-mobile/gutenberg-mobile#6475. Improve
the UX for users relying upon screen readers.
How?
Implement a React Hook for replicating "live regions" for both iOS and Android.
Announce a message whenever the network connection status changes.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
N/A, no visible changes proposed.