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

Hide active variant images on modals #526

Merged
merged 1 commit into from
Aug 31, 2021
Merged

Conversation

LucasLacerdaUX
Copy link
Contributor

@LucasLacerdaUX LucasLacerdaUX commented Aug 31, 2021

Why are these changes introduced?
Fix an issue where the Hide other variants’ media after selecting a variant was causing the active variant media to be shown on mobile.

What approach did you take?
Restrict the variant image visibility CSS to desktop media queries. Mobile devices should display only a single media inside the modal.

Demo links

Checklist

@LucasLacerdaUX LucasLacerdaUX marked this pull request as ready for review August 31, 2021 01:23
Copy link
Contributor

@kmeleta kmeleta left a comment

Choose a reason for hiding this comment

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

Checked with the setting off and on, desktop and mobile, and seems to work as expected 👍

Copy link
Contributor

@martinamarien martinamarien left a 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 Lucas. Thank you for fixing this bug for us.

@LucasLacerdaUX LucasLacerdaUX merged commit c124981 into main Aug 31, 2021
@LucasLacerdaUX LucasLacerdaUX deleted the fix-active-media-modal branch August 31, 2021 02:14
phapsidesGT pushed a commit to Gravytrain-UK/gt-shopify-dawn-theme that referenced this pull request Sep 3, 2024
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.

3 participants