-
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
Remove unused image-banner section setting translation #2482
Remove unused image-banner section setting translation #2482
Conversation
@@ -1047,7 +1047,7 @@ | |||
"margin_top": { | |||
"label": "Top margin" | |||
}, | |||
"header__9": { | |||
"header__9": { |
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.
It would be great if this PR got merged in so that we don't have this kinds of changes anymore: Add prettier config to support format-on-save #2323
@@ -37,7 +37,6 @@ | |||
"settings": { | |||
"image_overlay_opacity": 40, | |||
"image_height": "large", | |||
"adapt_height_first_image": false, |
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.
This is the line that made me go down the rabbit hole.
Please have a look @kmeleta @LucasLacerdaUX |
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. I'll try to check why translation platform never removed this key 👀
Thanks for the contribution, @vfonic! :D
Looks like it's just because we never removed the english translation string so nothing was triggered on the translation platform side of things. |
PR Summary:
I removed "adapt_height_first_image" setting translations from image-banner section as it is not used anymore.
It remained here after this PR and seems like it never got removed by the translation platform:
https://github.com/Shopify/dawn/pull/2148/files#r1043139341
Why are these changes introduced?
I was manually upgrading theme from 8.0.1 to 9.0.0. This is always a painful experience. I noticed that there's this new setting value that appeared in my
templates/index.json
and I removed it since it's not used and it took my time to figure out where this setting came from. Having this setting completely removed, it might save time for other developers in the future how are also manually upgrading their themes.What approach did you take?
Other considerations
Decision log
Visual impact on existing themes
Testing steps/scenarios
Demo links
Checklist