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: Omitting tailwind classes #182

Merged

Conversation

danielbinsmaier
Copy link
Contributor

@danielbinsmaier danielbinsmaier commented Aug 17, 2023

Fixes simplifyTailwindClasses omitting types when a second class of the type is present (e.g. border together with border-gray-300) and is called with an empty string argument (simplifyTailwindClasses('border border-gray-300', '')).

Fix is done by simply filtering empty strings before going on with the main functionality of the function.

This fixes the issue #181.

@danielbinsmaier danielbinsmaier changed the title fix: Obmitting tailwind classes fix: Omitting tailwind classes Aug 22, 2023
@cogor cogor added 🔧 enhancement New feature or request ✨ good first issue Good for newcomers labels Aug 25, 2023
@cogor cogor merged commit 1312bbc into themesberg:main Aug 25, 2023
7 checks passed
@cogor
Copy link
Collaborator

cogor commented Aug 25, 2023

LGTM

@danielbinsmaier danielbinsmaier deleted the fix-obmitting-tailwind-classes branch September 5, 2023 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 enhancement New feature or request ✨ good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants