-
Notifications
You must be signed in to change notification settings - Fork 253
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
[bug] Handle dynamic className in tailwind input #799
Comments
Hello, I would like to give this issue a try! |
Go for it @cleobnvntra. This is a good place to start. This is used in TailwindInput and we can augment the return type to potentially pass a warning
|
Hello @Kitenite ! So I've been able to understand and figure out how to determine whether a I am not sure however what kind/type of warning you prefer, so for now I made it so that it displays a message in the Tailwind Classes With that said, I also wanted to clarify, do we only want to show a warning message when a dynamic variable is used? or do we display a warning message regardless as long as a template literal is used (even without a dynamic variable). |
@cleobnvntra , in the new version, onlook will only work if ran from the terminal from the toolbar. Could you confirm that it is running? The tailwind class missing is from Onlook not being enabled usually |
That looks great, could we surface a button that opens that templateNode as well in the warning?
I think we should display when it's a situation where we can't simply text edit. If it's a template variable wrapping a string, we should be able to handle it (if we're not already). Does that help? @cleobnvntra |
Oh I didn't realize this was necessary with the new version. Yep it works now! :)
Sure! I was thinking maybe a button on the lower right corner where the
Yes that helps! |
Describe the bug
We're currently not returning anything if the className is anything but a string. We may want to handle this better by warning the user that this is dynamic and let them open it in code.
The text was updated successfully, but these errors were encountered: