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

Remove "hover" option for image zoom #2283

Merged
merged 1 commit into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions sections/featured-product.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -1424,18 +1424,13 @@
"value": "lightbox",
"label": "t:sections.main-product.settings.image_zoom.options__1.label"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be removing the translations too? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, we keep the translations. Similar to the dead code, it just makes our lives easier without causing any negatives.

The translation platform should have some memory of previous translations so that won't cause issues with time whenever we revisit it on the next release, BUT translation conflicts are a pain to deal with so let's just keep it there. There's not much negative in having some extra unused strings.

},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this can be commented out or removed for now too 🤔 https://screenshot.click/03-58-akjn2-e2l2x.png

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say to keep it. It's okay if we're revisiting it soon.
As long as that condition will never be true, it's okay to leave some dead code in to save us some time when we fix this feature.

{
"value": "hover",
"label": "t:sections.main-product.settings.image_zoom.options__2.label"
},
{
"value": "none",
"label": "t:sections.main-product.settings.image_zoom.options__3.label"
}
],
"default": "lightbox",
"label": "t:sections.main-product.settings.image_zoom.label",
"info": "t:sections.main-product.settings.image_zoom.info"
"label": "t:sections.main-product.settings.image_zoom.label"
},
{
"type": "checkbox",
Expand Down
7 changes: 1 addition & 6 deletions sections/main-product.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -1998,18 +1998,13 @@
"value": "lightbox",
"label": "t:sections.main-product.settings.image_zoom.options__1.label"
},
{
"value": "hover",
"label": "t:sections.main-product.settings.image_zoom.options__2.label"
},
{
"value": "none",
"label": "t:sections.main-product.settings.image_zoom.options__3.label"
}
],
"default": "lightbox",
"label": "t:sections.main-product.settings.image_zoom.label",
"info": "t:sections.main-product.settings.image_zoom.info"
"label": "t:sections.main-product.settings.image_zoom.label"
},
{
"type": "select",
Expand Down