Skip to content

fix(tailwind): prefix misapplied on negative value#1093

Open
AloisH wants to merge 1 commit intounovue:devfrom
AloisH:fix-tailwind-negative-modifiers
Open

fix(tailwind): prefix misapplied on negative value#1093
AloisH wants to merge 1 commit intounovue:devfrom
AloisH:fix-tailwind-negative-modifiers

Conversation

@AloisH
Copy link
Copy Markdown
Contributor

@AloisH AloisH commented Mar 7, 2025

🔗 Linked issue

#1087

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This change is required because we are currently not applyting properly tailwind negavite modifier with prefix.

  • Added handleNegativeVariants function to handle proper prefix application.
  • Ensured negative modifiers are correctly interpreted.

Resolves #1087

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@AloisH AloisH force-pushed the fix-tailwind-negative-modifiers branch from 5bc4ec0 to ae8eb38 Compare March 7, 2025 17:56
@dbssman
Copy link
Copy Markdown

dbssman commented Jul 1, 2025

@sadeghbarati Could you take a look into this, it seems a correct fix and simple enough :) thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shadcn-ui Changes depends on original repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Tailwind prefix misapplied on negative values

3 participants