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

Fix Dropdown item styles #1031

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Fix Dropdown item styles #1031

merged 2 commits into from
Jan 10, 2025

Conversation

nlopin
Copy link
Contributor

@nlopin nlopin commented Jan 10, 2025

This is a mystery, but the moment the item component is extracted to a separate file, it looses wrapping styles

@nlopin nlopin requested a review from a team as a code owner January 10, 2025 14:54
Copy link

github-actions bot commented Jan 10, 2025

🔍 Visual review for your branch is published 🔍

Here are the links to:

Comment on lines +43 to +46
const itemClass = cn(
"flex items-start gap-1.5 w-full",
item.critical && "text-f1-foreground-critical"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sometimes I wonder to which extend Tailwind's JIT will detect things that are not obviously class names. This is quite obvious, but maybe the original issue was related?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it was radix, not the tailwind. I literally cut-and-pasted the component back and it worked

@nlopin nlopin enabled auto-merge (squash) January 10, 2025 15:05
@nlopin nlopin merged commit d69f808 into main Jan 10, 2025
10 checks passed
@nlopin nlopin deleted the dropdown-fix-item-styles branch January 10, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants