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

[Product page] Making the sticky content more flexible #2015

Merged
merged 5 commits into from
Nov 23, 2022

Conversation

ludoboludo
Copy link
Contributor

@ludoboludo ludoboludo commented Oct 7, 2022

PR Summary:

We're currently applying the sticky behaviour in a pretty opinionated way on the media column or product info one.
This PR aims to make it a lot more flexible to work in whatever content the merchant has (not a lot of images and a long description or the other way around).

Why are these changes introduced?

Fixes #0.

What approach did you take?

I applied the sticky class on both columns at all time instead of conditionally.

Other considerations

Decision log

# Decision Alternatives Rationale Downsides
1

Visual impact on existing themes

Testing steps/scenarios

  • Test with and without sticky setting on. Screenshot
  • test on pages with longer media column, eg: Louise sandal with the unhidden variants (screenshot)
  • test on pages with longer product content column, eg: Shoe test variant product
  • test all media layout options, eg: medias on the left, stacked, 2 columns, thumbnail (screenshot)
  • test the product modal

Demo links

Checklist

@ludoboludo ludoboludo marked this pull request as ready for review October 11, 2022 16:23
@ludoboludo ludoboludo self-assigned this Oct 24, 2022
@melissaperreault melissaperreault self-requested a review November 11, 2022 13:28
@LucasLacerdaUX LucasLacerdaUX self-requested a review November 14, 2022 15:00
@eugenekasimov eugenekasimov self-requested a review November 14, 2022 16:57
Copy link
Contributor

@eugenekasimov eugenekasimov left a comment

Choose a reason for hiding this comment

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

I couldn't break anything. Works as expected.

Copy link
Contributor

@melissaperreault melissaperreault left a comment

Choose a reason for hiding this comment

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

Thanks Ludo! 🎉 I tested various scenarios and the one below and works as expected! 🚢

  • Test with and without sticky setting on. Screenshot
  • test on pages with longer media column, eg: Louise sandal with the unhidden variants (screenshot)
  • test on pages with longer product content column, eg: Shoe test variant product
  • test all media layout options, eg: medias on the left, stacked, 2 columns, thumbnail (screenshot)
  • test the product modal

@ludoboludo ludoboludo merged commit 30e1d2e into main Nov 23, 2022
@ludoboludo ludoboludo deleted the product-page-sticky-content branch November 23, 2022 19:36
phapsidesGT pushed a commit to Gravytrain-UK/gt-shopify-dawn-theme that referenced this pull request Sep 3, 2024
* Making the sticky content more flexible

* unify the class name and edit the references in the quick add styling

* fix class name

* Rebase tweaks
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.

4 participants