-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Arbitrary value classes not generated with Aurelia 2 style class bindings. #17290
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
Comments
Does anyone has an idea if I am doing something wrong? Any help would be appreciated. |
@RobinMalfait Do you perhaps have an update on this? Could really use this to continue upgrading my projects. |
@dtaalbers sorry for not getting back earlier; Do you know if you always have to use Typically when we have to deal with custom templating syntax, we add a pre-processor to massage the file a little bit so we can extract candidates easier. We already do that for: tailwindcss/crates/oxide/src/scanner/mod.rs Lines 410 to 425 in 8e826b1
The problem with Aurelia as far as I can tell is that this custom syntax is implemented in
So in either scenario there is an additional cost to pay. So a few questions:
|
What version of Tailwind CSS are you using?
v4.0.14
What build tool (or framework if it abstracts the build tool) are you using?
postcss, webpack, Aurelia 2 beta-23.
What version of Node.js are you using?
v22.13.1
What browser are you using?
N/A
What operating system are you using?
macOS
Reproduction URL
https://github.com/dtaalbers/aurelia-tailwind-issue
Describe your issue
I have prepared two projects for comparison. The first one uses Tailwind CSS v3. To test it, open the project, install dependencies with npm install, start the project with npm start, and navigate to http://localhost:9000/. You can toggle the width of the square using the button.
I have also included a version using Tailwind CSS v4. Follow the same steps to start it. However, in this version, the size toggle no longer works because the w-[44px] class doesn’t seem to be generated.
If you add a div with this class, for example:
both the new div and the toggled element receive the correct height. Since I frequently use
size-[44px].class="size === 'small'"
style bindings in my projects, I need this functionality to work properly.The text was updated successfully, but these errors were encountered: