-
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
Image setting updates #2148
Image setting updates #2148
Conversation
c318ff3
to
8f8f3d9
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.
Looking good! 👍
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 think you could use the Prettier plugin even though I haven't merged it yet.
The rest looks great!
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.
Works as expected! Just left two minor comments before you request translations 👍
"label": "t:sections.image-banner.settings.adapt_height_first_image.label", | ||
"info": "t:sections.image-banner.settings.adapt_height_first_image.info" |
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.
Should we remove these translation keys in en.default.schema.json
?
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 actually did mean to initially. Do you know what happens if we do remove some? Do the generated strings end up getting removed from the other files async or anything or would we have to go and specifically delete them ourselves?
If there's no conflicts or anything I might just clean this up in another image with text related PR I have going so I don't have to pull this down again, if that's ok with you.
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 pretty sure it gets removed by the translation platform at some point if we remove it from the English file. But I'm okay with doing it on a separate PR.
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.
Hey team! Seems like the translation was not removed. TIL!
There is an open PR for removing it from our community #2482
3b9c9e6
0da5add
to
cdbb6b3
Compare
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.
👍
* shopify/main: (57 commits) Change sticky header settings (Shopify#2165) Image setting updates (Shopify#2148) Update 1 translation file (Shopify#2183) Update 2 translation files (Shopify#2182) Fix mega-menu vertical shadow issue (Shopify#2147) Update translations: buyer (Shopify#2180) Change product recommendations name to related products (Shopify#2161) Update 2 translation files (Shopify#2178) Add default text for cart-notification link (Shopify#2167) Update 1 translation file (Shopify#2177) Update 20 translation files (Shopify#2176) Update 1 translation file (Shopify#2174) Updates to collage settings and defaults (Shopify#2150) Update 1 translation file (Shopify#2173) Update issue templates Update layout label (Shopify#2164) Search ux improvements (Shopify#2127) Prettier all liquid files [part 2] (Shopify#2126) [Footer] Add 'Show policy links' setting (Shopify#2084) [Header] Move 'Logo' to Global Theme settings (Shopify#2083) ...
* Update height settings for image banner, slideshow, image with text * Setting schema updates * Update 17 translation files * Update 2 translation files * Update 1 translation file * Fix formatting Co-authored-by: Lucas Lacerda <37168033+LucasLacerdaUX@users.noreply.github.com> Co-authored-by: translation-platform[bot] <34770790+translation-platform[bot]@users.noreply.github.com> Co-authored-by: Lucas Lacerda <37168033+LucasLacerdaUX@users.noreply.github.com>
PR Summary:
Makes minor adjustment to image size settings for slideshow, image banner, and image with text.
Important: Removed a setting in image banner.
Why are these changes introduced?
Fixes #2133
What approach did you take?
Slide height
setting fromAdapt
toMedium
Adapt section height to first image size
checkbox setting with a newAdapt to first image
option for existingBanner height
select settingMedium
option to existingImage height
select settingVisual impact on existing themes
Slideshow: Default slide height has changed. This could cause a visual change for sections that don't have a value for this setting defined, but this shouldn't be the case.
Image banner: The setting changes in image banner should be considered a breaking change. The same visual result is still achievable with the new option added to the banner height setting, but sections will need to be manually updated to use the new setting.
Testing steps/scenarios
Demo links
Checklist