Skip to content

fix(core): set min-height for navigation fallback #2416

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

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

jorgemoya
Copy link
Contributor

@jorgemoya jorgemoya commented Jun 12, 2025

What/Why?

Set a min-height for the Navigation fallback skeleton to prevent layout shift.

Reason why it's 41px is because this is the value of the menu links.

Screenshot 2025-06-12 at 3 32 52 PM Screenshot 2025-06-12 at 3 32 55 PM

Testing

Tested locally and no longer see a layout shift when swapping locales.

Migration

Add min-h-[41px] & items-center to fallback.

@jorgemoya jorgemoya requested a review from a team as a code owner June 12, 2025 20:34
Copy link

changeset-bot bot commented Jun 12, 2025

🦋 Changeset detected

Latest commit: 971f7a1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jun 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
catalyst-canary ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2025 8:37pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst ⬜️ Ignored (Inspect) Jun 12, 2025 8:37pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Jun 12, 2025 8:37pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Jun 12, 2025 8:37pm

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.

1 participant