Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

fix(subnav): dot-io layout shift issue#586

Merged
zchsh merged 2 commits into
mainfrom
zs.patch-subnav-overflow
May 11, 2022
Merged

fix(subnav): dot-io layout shift issue#586
zchsh merged 2 commits into
mainfrom
zs.patch-subnav-overflow

Conversation

@zchsh
Copy link
Copy Markdown
Contributor

@zchsh zchsh commented May 10, 2022

🎟️ Asana Task
🔍 Preview Link


Description

This PR fixes an issue in @hashicorp/react-subnav where, before overflow detection, subnav might cause horizontal overflow in some situations.

Note: this fix was initially made to address an issue with layout shift on mobile. The specific issue has since been resolved in another way, but this fix still felt worth merging.

PR Checklist 🚀

Items in this checklist may not may not apply to your PR, but please consider each item carefully.

  • Add Asana and Preview links above.
  • Conduct thorough self-review.
  • Add or update tests as appropriate.
  • Conduct reasonable cross browser testing for both compatibility and responsive behavior (We have a Sauce Labs account for this, if you don't have access, just ask!).
  • Conduct reasonable accessibility review (use the WAS as a guide or an axe browser plugin until we establish more formal checks).
  • Identify (in the description above) and document (add Asana tasks on this board) any technical debt that you're aware of, but are not addressing as part of this PR.

@zchsh zchsh added the release:canary Triggers a canary release for commits to this pull request label May 10, 2022
@vercel
Copy link
Copy Markdown

vercel Bot commented May 10, 2022

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

Name Status Preview Updated
react-components ✅ Ready (Inspect) Visit Preview May 10, 2022 at 3:40PM (UTC)

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 10, 2022

🦋 Changeset detected

Latest commit: 49b7adc

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

This PR includes changesets to release 1 package
Name Type
@hashicorp/react-subnav 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

@github-actions
Copy link
Copy Markdown
Contributor

📦 Canary Packages Published

Latest commit: 49b7adc

Published 1 packages

@hashicorp/react-subnav@9.3.5-canary-20220510154113

npm install @hashicorp/react-subnav@canary

@zchsh zchsh requested a review from brkalow May 11, 2022 15:07
@zchsh zchsh marked this pull request as ready for review May 11, 2022 15:07
@zchsh
Copy link
Copy Markdown
Contributor Author

zchsh commented May 11, 2022

@brkalow I think this fix might not be necessary anymore, but also figure it doesn't hurt and may catch future edge cases, so figure worth merging regardless. Let me know what you think 🙇‍♂️

Copy link
Copy Markdown
Contributor

@brkalow brkalow left a comment

Choose a reason for hiding this comment

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

👏

@zchsh zchsh merged commit bff747b into main May 11, 2022
@zchsh zchsh deleted the zs.patch-subnav-overflow branch May 11, 2022 18:53
@hashibot-web hashibot-web mentioned this pull request May 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release:canary Triggers a canary release for commits to this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants