-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Proper handling of selectors containing escaped characters #35
Comments
Hey @mfarhadpur, I never saw this style of CSS. You think it is ok if |
Thanks for the reply. Yes, that should be fine. Just the backslash is only used in the CSS, e.g. the above class is used as |
Alright. I'll implement it the next days. |
Thanks! |
@mfarhadpur please checkout |
@JPeer264 Thanks for working on this. I think you should re-open the issue, as there are still bugs. So, basically such a selector is defined as: .focus\:bg-white:focus {
background-color: #fff;
} And used as: <a href="#" class="focus:bg-white">Link<a> Note that unescaped .b {
background-color: #fff;
} While it should be: .b:focus {
background-color: #fff;
} |
Uff. Sorry I totally missed that. I hope I can fix this soon. |
No worries, whenever you find the time. Just to reiterate, there's also the issue of renames not being applied in HTML/JS. |
Seems like I did not write enough tests for it ;) Gonna be fixed the next iteration. |
@mfarhadpur I hope I finally got all the bugs fixed with version |
@JPeer264 Thanks! Everything seems to be working fine. Would you mind also updating the PostCSS plugin to use the latest core, whenever you have the time? |
Done. |
Thanks for your work on this. I noticed it currently does not handle selectors that contain escaped characters such as
:
used by TailwindCSS, e.g..focus\:bg-white
.The text was updated successfully, but these errors were encountered: