-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add Follow on Shop #2211
Add Follow on Shop #2211
Conversation
0ea44be
to
c44d785
Compare
e6b8419
to
37a47d8
Compare
Running |
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.
Looks good to me! :D
I did run it and the "error" is related to a new |
8a49ee9
to
3b4d275
Compare
Add setting to allow merchants to turn on the Follow on Shop button. This will allow customers to follow the store in the Shop app.
3b4d275
to
5166a8a
Compare
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.
For some reason FOLLOW ON SHOP is not displayed without SOCIAL MEDIA ICONS or EMAIL SIGNUP. Am I missing something?
Good catch, @eugenekasimov. I think we need to updte line 40 of footer.liquid: {%- if section.blocks.size > 0 or section.settings.newsletter_enable or section.settings.show_social -%} should probably become: {%- if section.blocks.size > 0 or section.settings.newsletter_enable or section.settings.show_social or section.settings.enable_follow_on_shop -%} |
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.
align-items: flex-end; | ||
margin-top: 3rem; | ||
gap: 1rem; |
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.
Here I'm wondering if we should use the variables we already have instead of a hard coded value. The blocks coming up in the footer are using column-gap: var(--grid-desktop-horizontal-spacing);
and column-gap: var(--grid-mobile-horizontal-spacing);
.
Not a blocker, just a thought so everything is using a similar spacing.
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.
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.
Oh maybe it's due to the flex-direction
on mobile ? Since it's column 🤔
So it would need to be row-gap
on mobile or use flex-wrap
instead of flex-direction
.
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.
@ludoboludo Good idea. I'll include this fix on my follow-up PR for footer.
If you're okay with everything else, let's ship this to main
so we can include it as part of our next round of tests and address any minor styling issues as follow ups.
Co-authored-by: Lucas Lacerda <37168033+LucasLacerdaUX@users.noreply.github.com>
We have a PR open to try and solve this one https://github.com/Shopify/shop-js/pull/752. |
Co-authored-by: Lucas Lacerda <37168033+LucasLacerdaUX@users.noreply.github.com>
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.
LGTM. Thanks for making the changes 🐕 👍
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.
Looks good.
One minor thing I noticed, it's not really related to this PR, but if none of the Social Media Icons is assigned, it looks a bit weird and we can see shifting in layout effecting Follow on shop position. But as I said, maybe it's worth a separate PR.
PR Summary:
Add the Follow on Shop setting. Having this enabled creates a way for a merchants customers to follow their store in the Shop App. This allows the customer to get personalized product recommendations and notifications about the store.
Figma
Visual impact on existing themes
Testing steps/scenarios
The goal of testing is to ensure that the components show up in the proper position based on who their sibling components are. Then that it responds well to resizing of the browser window.
Make sure the Follow on Shop Button is enabled in the editor if it is not showing up in the store preview
See Figma for what alignment should look like
Browser
Mobile View Editor
In general content should stack and be centered.
Desktop View
Demo links
Checklist