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

Docs site: Unexpected layout shift on homepage #2362

Open
anuradha9712 opened this issue Oct 1, 2024 · 2 comments
Open

Docs site: Unexpected layout shift on homepage #2362

anuradha9712 opened this issue Oct 1, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation gatsby hacktoberfest https://hacktoberfest.digitalocean.com

Comments

@anuradha9712
Copy link
Collaborator

anuradha9712 commented Oct 1, 2024

Description

When user navigates to the MDS Docs site, there is an unexpected layout shift initially on the homepage.

It was working previously, but stopped functioning after migrating the code from Gatsby v3.x to v5.x

image

Steps to reproduce

  • Navigate to the MDS Docs site
  • Notice the unexpected layout shift on homepage for few milliseconds

Expected result

The expected behavior is that there should be no layout shift to ensure a better user experience.

image

Steps to fix the issue

  • Fork and clone this repository
  • First checkout to develop branch, and from that create a new branch
  • Switch current directory to docs using command cd docs
  • Install dependencies using npm install
  • Start development server using npm run dev
  • Check the issue on your local environment on localhost:8000
  • Refer to this file for homepage's codebase
@anuradha9712 anuradha9712 added hacktoberfest https://hacktoberfest.digitalocean.com gatsby documentation Improvements or additions to documentation labels Oct 1, 2024
@pranjalee30
Copy link

Hey @anuradha9712 mam, Can you please assign this to me?

@anuradha9712
Copy link
Collaborator Author

@pranjalee30 any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation gatsby hacktoberfest https://hacktoberfest.digitalocean.com
Projects
None yet
Development

No branches or pull requests

2 participants