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

refactor: badge icon spacing #6962

Merged
merged 1 commit into from
Apr 30, 2024
Merged

refactor: badge icon spacing #6962

merged 1 commit into from
Apr 30, 2024

Conversation

Tymek
Copy link
Member

@Tymek Tymek commented Apr 29, 2024

Simplified after previous modifications

Copy link

vercel bot commented Apr 29, 2024

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

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 0:52am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Apr 29, 2024 0:52am

@Tymek Tymek marked this pull request as ready for review April 29, 2024 12:48
/>
<ConditionallyRender
condition={Boolean(children)}
show={<div>{children}</div>}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we putting the children within a div here? Couldn't this whole component be replaced with {children}? Is it in case we have several children and we need to group them?

Copy link
Member Author

@Tymek Tymek Apr 29, 2024

Choose a reason for hiding this comment

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

Good question. It's because children can be containing multiple elements, and without wrapping it we can run into issues where flexbox adds spacing between every child item

@Tymek Tymek merged commit 0bacd60 into main Apr 30, 2024
14 of 15 checks passed
@Tymek Tymek deleted the refactor/badge-icon-spacing branch April 30, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants