-
Notifications
You must be signed in to change notification settings - Fork 82
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
feat: improve responsiveness of navbar #2934
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/components/navbar/src/NavbarSwitcher/NavbarSwitcher.styles.ts
Outdated
Show resolved
Hide resolved
significant changes since the approval
/** breakpoint to determine when to show the mobile navigation */ | ||
mobileNavigationBp?: 'small' | 'medium'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would be the deciding factor to select one or the other? Is it the number of nav items (i.e. the organization settings)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, for the organization settings navigation, there is already not enough space for the switcher with the main navigation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can revisit this logic once we support container queries, we should be able to make it fully dynamic based on the surrounding elements 🤞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA looking good 👍
373d90d
to
565c4df
Compare
Purpose of PR
exports media queries variables from the package
enables hiding promo navigation on smaller screens
changes the text overflow behavior and width of the Navbar.Switcher component. Before the text was just cut off and there was no max-width on the switcher
before:
after: