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

Fallback to static chevron color if theme is using variables #167

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

adamwathan
Copy link
Member

Right now if your gray.500 color includes a CSS variable, the chevron on your select elements will disappear because URLs in background-image can't use CSS variables.

This PR just ensures that if there's a variable in your color, we fallback to the default gray.500 so at least the chevron doesn't disappear.

Fixes #165.

Copy link

vercel bot commented Sep 5, 2024

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

Name Status Preview Comments Updated (UTC)
tailwindcss-forms ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 1:44pm

@adamwathan adamwathan merged commit 255476c into main Sep 5, 2024
1 of 2 checks passed
@adamwathan adamwathan deleted the fix/issue-165 branch September 5, 2024 13:44
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.

No color on select chevron when overriding colors in config
2 participants