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

Fix social list styles loading #2900

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

kmeleta
Copy link
Contributor

@kmeleta kmeleta commented Jul 21, 2023

PR Summary:

Why are these changes introduced?

Prevent layout shift in the announcement bar caused by social list styles not getting loaded initially.

What approach did you take?

Other considerations

Decision log

# Decision Alternatives Rationale Downsides
1

Visual impact on existing themes

Testing steps/scenarios

  • Ensure there's no layout shift on page load in the announcement bar height when social icons are enabled and visible

Demo links

Checklist

Copy link
Contributor

@sofiamatulis sofiamatulis left a comment

Choose a reason for hiding this comment

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

I have tested it and it works as expected 👌

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.

Works good 👍

@@ -14,6 +14,10 @@
endif
-%}

{% if social_icons %}
{{ 'component-list-social.css' | asset_url | stylesheet_tag }}
Copy link
Contributor

@KaichenWang KaichenWang Jul 24, 2023

Choose a reason for hiding this comment

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

Fixes the most noticeable layout shift, so ok to merge this as-is and work on the rest as "fast follow".

There is still some shifting in the announcement bar's contents on page load. Difficult to notice, because it adjusts quickly, but scrubbing through the video frame-by-frame shows elements shifting. Since announcement bar is almost certainly above-the-fold, we'll probably want to address this too at some point.

screencast.2023-07-24.17-10-23.mp4

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's kind of an interesting result. If I scrub thru that I see the announcement bar shift occurring before the header is even visible. And the announcement bar hasn't even adjusted its margin for the full width layout that accompanies the drawer menu style at that point. I'm also struggling to reproduce, so I think we'll definitely need to take some time with this after the fact.

@kmeleta kmeleta merged commit a12949f into release/11.0.0-rc Jul 24, 2023
@kmeleta kmeleta deleted the announcement-social-list-fix branch July 24, 2023 16:32
KaichenWang pushed a commit that referenced this pull request Jul 26, 2023
sjflaher added a commit that referenced this pull request Jul 27, 2023
* Price per item, Popover and global style bugs (#2851)

* Fix cart submission on Quick Order List (#2868)

* replace translation string to have the translation visible (#2869)

* B2B compare at price with price range (#2858)

* Add sale badge and price-range for volume-pricing

* Add compare_at price to PDP and Feat Prod.

* Change opacity to 100% for price per item.

* Update the logic

* Hide price per item for unavailable variants.

* Remove margin for dl.

* Refactoring

* Correct a mistake in liquid.

* Change the JS logic back for updating price per item

* Add compare at to prod card. Add style to compare at

* Add missing shadow styles to inputs in Quick Order List (#2879)

* Fix cart drawer for variant list and tablet spacing (#2880)

* Replace generic section name with section ID. (#2884)

* Fix error misalignment for Quick order list (#2887)

* Fix error misalignment

* Reduce top space. Address feedback.

* Fix hardcoded info color (#2893)

* Fix an error (#2903)

* Fix social list styles loading (#2900)

* v11.0.0 version bump and release notes (#2906)

* Update quantity-popover.css

Add new line at end of file

* Revert "v11.0.0 version bump and release notes (#2906)" (#2915)

This reverts commit 13dec2a.

* v11.0.0 version bump and release notes (#2916)

---------

Co-authored-by: Sofia Matulis <[email protected]>
Co-authored-by: melissaperreault <[email protected]>
Co-authored-by: Eugene Kasimov <[email protected]>
Co-authored-by: Ken Meleta <[email protected]>
Co-authored-by: Kai <[email protected]>
TimmersThomas added a commit to TimmersThomas/shopify-template-houseofchocolate that referenced this pull request Aug 13, 2023
* upstream/main: (205 commits)
  Fix for small screens with large fonts don't fit all content (Shopify#2946)
  Adjust quantity rules margin (Shopify#2948)
  Update Social media settings defaults to remove Shopify links (Shopify#2830)
  added json to barcode to pass gtin as a json string (Shopify#2804)
  Fixed extra margin spacing in collage section when header is empty (Shopify#2770)
  Track state of mouseenter event (Shopify#2934)
  Fix misalignment of total items in quick order list (Shopify#2923)
  Hide vol pricing and qty rules when variant is unavailable (Shopify#2889)
  Fix font family for quick order list (Shopify#2888)
  v11.0.0 version bump and release notes (Shopify#2916)
  Revert "v11.0.0 version bump and release notes (Shopify#2906)" (Shopify#2915)
  Update quantity-popover.css
  v11.0.0 version bump and release notes (Shopify#2906)
  Fix social list styles loading (Shopify#2900)
  Fix an error (Shopify#2903)
  Fix hardcoded info color (Shopify#2893)
  Fix error misalignment for Quick order list (Shopify#2887)
  Replace generic section name with section ID. (Shopify#2884)
  Fix cart drawer for variant list and tablet spacing (Shopify#2880)
  Add missing shadow styles to inputs in Quick Order List (Shopify#2879)
  ...
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants