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

Use addComponents for class strategy #91

Merged
merged 2 commits into from
Feb 23, 2022
Merged

Use addComponents for class strategy #91

merged 2 commits into from
Feb 23, 2022

Conversation

FedericoBiccheddu
Copy link
Contributor

@FedericoBiccheddu FedericoBiccheddu commented Nov 3, 2021

Currently we cannot use Tailwind's base layer because we are migrating our product from Bootstrap. Due to this problem I noticed that probably .form-* classes should not be in the base bucket but in the component instead when using strategy: 'class'.

With this change classes are added in components bucket.

PS: I was inspired by #66, but don't know why has been closed.
Closes: #64

@vercel
Copy link

vercel bot commented Nov 3, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tailwindlabs/tailwindcss-forms/7wL2UAi53em2BZXgaNdkWFDMgmxS
✅ Preview: https://tailwindcss-forms-git-fork-federicobicchedd-abc892-tailwindlabs.vercel.app

@iseries
Copy link

iseries commented Jan 13, 2022

Works. Please merge.

@RobinMalfait
Copy link
Member

Hey! Thank you for your PR!
Much appreciated! 🙏

This is exactly what we needed and closes a bug #64. Thanks!

@RobinMalfait RobinMalfait changed the title feat: add styles in bucket based on the strategy Use addComponents for class strategy Feb 23, 2022
@RobinMalfait RobinMalfait merged commit 807cd40 into tailwindlabs:master Feb 23, 2022
@RobinMalfait RobinMalfait self-assigned this Feb 23, 2022
@FedericoBiccheddu FedericoBiccheddu deleted the fb/use-bucket-based-stratey branch February 23, 2022 15:20
@Luigidefra
Copy link

I have same problem with important option set to class

It should set preflight with important parent class and also tailwind forms should set your class with your important parent class or tailwind important parent class

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.

Project prefix feature is not working for class strategy
4 participants