Skip to content
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

Merged
merged 7 commits into from
Jul 11, 2023
Merged

Conversation

kjellr
Copy link
Contributor

@kjellr kjellr commented Jul 10, 2023

PR Summary:

Why are these changes introduced?

  • We received feedback that it's unexpected that slides won't rotate on mobile automatically. This was originally done for accessibility reasons, but due to the relatively small footprint of the animation we're turning this animation back on for small screens. prefers-reduced-motion will still work for visitors who have that option set.
  • The visibility rule was added to help prevent the outlines of hidden blocks from showing up in power preview. This will require a change in the editor to be fully realized. (cc @clauderic)
  • Finally, the PR fixes a bug where the selected announcement bar message would not always be shown in the preview while it was being edited.

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

  • Check to make sure that when "Auto-rotate announcements" is checked, the announcements rotate on mobile too.
  • Make sure that non-active messages in the announcement bar receive the visibility: hidden; rule.
  • Verify that when you select a non-active message block from the sidebar, that message becomes the active message in the preview panel.

Demo: https://os2-demo.myshopify.com/admin/themes/140250742806/editor

Checklist

@kjellr kjellr self-assigned this Jul 10, 2023
@clauderic
Copy link
Member

This is the counterpart PR in online-store-web to update the preview inspector https://github.com/Shopify/online-store-web/pull/17287

@kimberlyoleiro kimberlyoleiro self-requested a review July 10, 2023 20:30
Copy link
Contributor

@lougoncharenko lougoncharenko left a 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?

@kjellr
Copy link
Contributor Author

kjellr commented Jul 11, 2023

*** 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.

@kjellr kjellr merged commit a53db9c into main Jul 11, 2023
@kjellr kjellr deleted the announcement-bar-auto-rotate-changes branch July 11, 2023 16:03
lougoncharenko pushed a commit that referenced this pull request Jul 12, 2023
* 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>
@kimberlyoleiro
Copy link

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

phapsidesGT pushed a commit to Gravytrain-UK/gt-shopify-dawn-theme that referenced this pull request Sep 3, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants