Gatsby: www: Logo screen is not working properly on responsive

Created on 19 May 2020  ยท  9Comments  ยท  Source: gatsbyjs/gatsby

Description

The logo page(https://www.gatsbyjs.org/guidelines/logo/) is not working on mobile screen sizes, basically images are not showing up and scrolling feels like infinite scroll, the next section comes after scrolling a lot.

Steps to reproduce

  1. Go to https://www.gatsbyjs.org/guidelines/logo/
  2. Inspect element and select toggle device toolbar
  3. You will see the page is not properly responsive

Expected result

  1. The text should not flow out of the width of device.
  2. The images should appear.
  3. It should scroll properly.

Actual result

  1. The text on this page is flowing out of the width of device, because of fixed width given.
  2. The images are also not showing up.
  3. Too much scrolling is required to go to the next section of the page.
confirmed bug

All 9 comments

I would love to raise a PR to fix this issue

Confirmed. See screenshots. When the page jumps to a single page column I think the scroll element jumps out of view, somehow, making it impossible to scroll.

image
image

Would love to see a PR for this.

cc @fk

@pvdz working on it ๐Ÿ‘

Hey @abhishekjakhar! ๐Ÿ‘‹
Thanks for opening this (and other issues, and your PRs)! ๐Ÿ’œ

I believe this was working once upon a time, before we made the transition to theme-ui, and away from styled-system, which I originally used to do the PoC for gatsbyjs.org/guidelines: https://mutability.netlify.app/logo/

As you say in https://github.com/gatsbyjs/gatsby/issues/24218#issuecomment-630805773, all guidelines pages are affected. I'm assuming that fixing this โ€ฆ somewhere in https://github.com/gatsbyjs/gatsby/blob/1f46057d825955a1ebb644141576ac0f0dcbff42/www/src/components/guidelines/containers.js I think โ€ฆ should fix it for all the pages you mentioned. ๐Ÿคž

Thanks so much for taking this! ๐Ÿค—

Hey @fk! ๐Ÿ‘‹
This will help a lot, thank you!

Hi @fk!
All of the components in Guidelines are still using styled-system, none of them have been moved to theme-ui, due to which all of the media query rules are not working in entire set of Guideline components, I have already migrated all of the containers and now there is no scrolling issue, but all of the others pages(logo, color, typography and design tokens) are broken because they are also not migrated to theme-ui. Now, my question is due you want me to do migrate all the guidelines pages in this same PR with containers or should I create a separate PR for each page, otherwise it will be very big PR.

I personally feel that first I should migrate all the Guideline containers to theme-ui so that display is not as broken as it is now, and then in the subsequent steps I will migrate each page of guidelines(logo, color, typography, design tokens).

Please let me know what do you feel about it?

I have already migrated all of the containers

โค๏ธ Thank you, thank you, thank you @abhishekjakhar! ๐Ÿ™

I personally feel that first I should migrate all the Guideline containers to theme-ui so that display is not as broken as it is now, and then in the subsequent steps I will migrate each page of guidelines(logo, color, typography, design tokens).

Sounds good to me, but happy to review whatever you find is needed to make the transition!

Hey @fk!
I have raised the PR https://github.com/gatsbyjs/gatsby/pull/24383, to convert all the Guidelines containers to theme-ui and make it work on responsive.
I will raise other PR's which will fix the components individually, after this gets merged.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brandonmp picture brandonmp  ยท  3Comments

totsteps picture totsteps  ยท  3Comments

timbrandin picture timbrandin  ยท  3Comments

signalwerk picture signalwerk  ยท  3Comments

Oppenheimer1 picture Oppenheimer1  ยท  3Comments