Skip to content

[Bug]: Tailwind prefix misapplied on negative values #1087

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

Open
2 tasks
darkons opened this issue Mar 6, 2025 · 0 comments · May be fixed by #1093
Open
2 tasks

[Bug]: Tailwind prefix misapplied on negative values #1087

darkons opened this issue Mar 6, 2025 · 0 comments · May be fixed by #1093
Labels
bug Something isn't working

Comments

@darkons
Copy link

darkons commented Mar 6, 2025

Reproduction

Add tailwind prefix to components.json file and use shadcn-vue CLI to add the Dialog component.

Describe the bug

After adding the Tailwind prefix to the configuration, I noticed that the prefix is misapplied to negative values.

For example in the DialogContent component:
https://github.com/unovue/shadcn-vue/blob/dev/apps/www/src/registry/new-york/ui/dialog/DialogContent.vue#L36

Results in tw--translate-x-1/2 tw--translate-y-1/2 instead of -tw-translate-x-1/2 -tw-translate-y-1/2

https://v3.tailwindcss.com/docs/configuration#prefix

System Info

Not necessary

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@darkons darkons added the bug Something isn't working label Mar 6, 2025
@AloisH AloisH linked a pull request Mar 7, 2025 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant