-
Notifications
You must be signed in to change notification settings - Fork 225
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
Adds selector ‘strategy’ plugin option #39
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tailwindlabs/tailwindcss-forms/Bbhe61MTGiJPBTXGL3uQys4bzTVm |
Can we get this merged in? It's actually super critical or else tailwindforms will break react-select and other UI kits. |
@spencerpauly unfortunately, there has been no response from anyone who has permissions to this repo. It seems this is unmaintained by the Tailwind team. I've tried reaching out via their Discord as well, and received no response. |
It's not unmaintained it's just that we can only prioritize so many things at a time. Still planning to merge something like this but it's not as simple as clicking a button, need to make sure we are happy with the actual API. I'm literally about to have a baby today, spent the last 5 weeks working 15 hours a day to build a new engine for the framework, and the rest of the team are trying to fulfill on promises to Tailwind UI customers for adding React + Vue support within the next two weeks. We'll get to this soon but we are a finite number of people and there's only so much we can do at once. |
Sure thing, totally understand @adamwathan. Congrats on the baby and thanks for all the work you do on Tailwind ❤️ . If you're open to adding some maintainers to help out, I think a few of us here would be glad to lend a helping hand. |
Went to clone this down locally to make some changes but looks like there are conflicts for some reason and not sure what the real source of them is. Any chance you can rebase this on master and force push so I can clone again @chasegiunta ? I have about 30 min to work on this right now but I don't want to just implement it over again and have you lose the commit credit 😕 but I really can't make sense of the diff and we still don't have tests for this project so it's a bit risky, I might be a moron but it looks like some things like border colors are different between this and master in certain situations for example, or maybe I am too dumb to make out the real diff, haha. |
Thanks @rwwagner90 — the biggest issue is honestly just trusting other people to make the same API decisions as me, it takes a lot of time to build that, so if I still have to be the one to hit the merge button on public API stuff, I'm still the bottleneck. For example in this PR (which is awesome btw, thanks @chasegiunta) there are a handful of things I already want to change in regards to naming, so I have to review it and either make the changes myself or make suggestions. This PR has been open since January and today is the first time I have been able to make the time to go over the whole thing in detail and even form an opinion on it, so I just dunno how adding maintainers fixes that bottleneck unfortunately 😕 |
@adamwathan if you're restrained for time, go have your baby and we can pick this up at a later date. I'm also in the middle of meetings right now and can't help at the current moment 😅 I think the main API decision is the naming of |
Turns out I had some local commits that actually made it into a real release that hadn't even been pushed to GitHub, hah. I have started reworking things a bit but didn't get to finish. If you want to make these changes to the existing PR I am good to merge:
Open to suggestions if anyone thinks there are problems with this but this is where I was leaning 👍🏻 |
@adamwathan Good deal. On it. |
…forms # Conflicts: # src/index.js
Easiest way to test is to copy this modified kitchen code which applies the correct @spencerpauly @rwwagner90 It would be great if you both could swing a test. |
Merged and released in v0.3.0, thanks @chasegiunta! |
Addresses #11 , #20 , #22
This intentionally keeps the code pretty dumb. Though, rather than using a ternary for every single selector, I opted to pass the selector string options to a simple function to determine whether to use
.form-
classes or not. This keeps it somewhat cleaner.To Test
If you'd like to do a simple test, paste in the kitchen sink html code here and toggle the
useFormClasses
boolean option (and remove altogether).The kitchen sink demo HTML is essentially duplicated. The first top set, being the original untouched kitchen sink, should work as intended without the option present, or set to
false
. (The bottom set will be broken except for the form controls that will rely on the.form-
class & the element or selector — you can ignore)If
useFormClasses
is set to true, the entire top original kitchen sink set should be entirely broken and the bottom set, which are all styled with.form-
classes, should be styled correctly.