-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Announcement Bar] Auto-rotate fixes #2810
Conversation
This is the counterpart PR in online-store-web to update the preview inspector https://github.com/Shopify/online-store-web/pull/17287 |
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.
PR looks good to me! I tested it doing the following
auto rotate
- Checked and unchecked auto rotate
- Tested auto rotate in mobile and desktop
- Increased the speed to 5s, 7s, 10s to ensure the speeds are still working
- removed and added social icons and locales to ensure nothing is broken
- tested auto rotate in safari and chrome
Other tests:
- Color schemes
- Color gradient
- Screen reader accessibility- turned voiceover on and navigated screen
*** In terms of accessibility, when I was using the voiceover screen reader, I noticed that when the announcement bars rotated, nothing was said to indicate the announcement bar slide was switching, nor was the text on the announcement bar read unless you hovered on it. Is there a reason why the announcement bars aren't announced via the screen reader?
Good callout. I did some keyboard + Voiceover testing, and it did announce the messages for me when I cycled through them. It didn't announce them when they cycled automatically, but I think that's probably fine — that area of the screen is relatively ambient, so I think it would be distracting to announce changes there while the user isn't directly interacting with it. It might be worth some investigation later, but I think we can handle it separate from this PR. |
* Update auto-rotate for the announcement bar * Simplify the visibility rule. * Update 20 translation files * Auto-advance to the selected message when block is selected. --------- Co-authored-by: translation-platform[bot] <34770790+translation-platform[bot]@users.noreply.github.com>
Alongside This is the counterpart PR in online-store-web to update the preview inspector https://github.com/Shopify/online-store-web/pull/17287 this issue fixes #2612 |
* Update auto-rotate for the announcement bar * Simplify the visibility rule. * Update 20 translation files * Auto-advance to the selected message when block is selected. --------- Co-authored-by: translation-platform[bot] <34770790+translation-platform[bot]@users.noreply.github.com>
PR Summary:
visibility: hidden
rule to slides that are hidden, so that they may be hidden from the preview inspector.Why are these changes introduced?
prefers-reduced-motion
will still work for visitors who have that option set.Visual impact on existing themes
On mobile, the announcement bar will auto-rotate if the merchant has set it to do so.
Testing steps/scenarios
visibility: hidden;
rule.Demo: https://os2-demo.myshopify.com/admin/themes/140250742806/editor
Checklist