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

Bug - NavItem - Icons don't show if there are complex children #11092

Open
rebeccaalpert opened this issue Sep 30, 2024 · 0 comments
Open

Bug - NavItem - Icons don't show if there are complex children #11092

rebeccaalpert opened this issue Sep 30, 2024 · 0 comments
Assignees

Comments

@rebeccaalpert
Copy link
Member

rebeccaalpert commented Sep 30, 2024

Describe the problem
The NavItem lets you show an icon. However, this breaks if you pass in a child with a div.

How do you reproduce the problem?
If you give any NavItem a child that's wrapped in a div, the icon won't show: https://codesandbox.io/p/sandbox/agitated-babycat-rvrw7v?file=%2Findex.tsx%3A32%2C21&workspaceId=f5599198-6a68-44b3-85bd-1caed5609909

If you remove the div, the icon comes back.

Expected behavior
Icon should display consistently.

Is this issue blocking you?
No!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

3 participants