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

Allow empty curly brackets as attributes #404

Closed
joselcvarela opened this issue Jul 14, 2022 · 1 comment · Fixed by #408
Closed

Allow empty curly brackets as attributes #404

joselcvarela opened this issue Jul 14, 2022 · 1 comment · Fixed by #408
Assignees
Labels
type: feature request Functionality that introduces a new feature

Comments

@joselcvarela
Copy link

joselcvarela commented Jul 14, 2022

Request / Idea

Allow empty curly brackets as attributes, instead of removing them.

Input

.text-red-400()&attributes(attributes)

Expected Output

.text-red-400()&attributes(attributes)

Additional Context

I just faced an issue using .text-red-400&attributes(attributes) because Tailwind thinks this whole thing is a class text-red-400&attributes as it does not generate the class .text-red-400.
If we allow empty curly brackets, then this example would be fixed by .text-red-400()&attributes(attributes).
My current workaround is .text-red-400(class="")&attributes(attributes) but does not make much sense

@Shinigami92
Copy link
Member

You should create a PR or wait for around 2 weeks
I'm in Singapore making vacation

@Shinigami92 Shinigami92 added the type: feature request Functionality that introduces a new feature label Jul 25, 2022
@Shinigami92 Shinigami92 self-assigned this Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request Functionality that introduces a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants