-
Notifications
You must be signed in to change notification settings - Fork 4k
Fix sublinks display on mobile #2620
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
Fix sublinks display on mobile #2620
Conversation
|
GitBook Preview |
ebd6bad
to
d9383ac
Compare
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
…appear-when-the-width-of-the
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.
much better 👍
active?: boolean; | ||
className?: ClassValue; |
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.
I'm not familiar with the GBO dev env yet : why isn't that a string?
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 manipulate clsx
values, but IMO we should not. All components should only accept a className?: string
and if you need to merge thing you can do it when you pass the prop: <Any className={clsx(...)} />
like we do in the app.
<Link | ||
href={href} | ||
prefetch={false} | ||
className={tcls( |
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.
Curious to know why we went for tcls
instead of clsx
on GBO?
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.
It's a mistake, but it's like that from the beginning. At some point we should change it to improve perfs.
Uh oh!
There was an error while loading. Please reload this page.