You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 0.51.6, specifically #2529, attributify styles are not being applied for some reason. The attributes are there:
But only some styles are being applied:
Downgrading to 0.51.5 works and afaik I am not using ternaries mentioned in #2529
Reproduction
I was not able to provide a minimal reproduction as of now. My current project is quite big and not open source. But maybe through some discussion and help I can get there
Coming back to this. Feel free to close it again right away, but I dont really know how I can solve this issue for my project. Looking at the inspector with 0.52.7, styles are definitely being generated as before.
They are just not being applied. When turning off attributify with 0.52.7, all styles that are written within the class attribute are being applied.
When reverting the fix #2529 (while still using 0.52.7)
All the styles are working again. Pretty sure I am not using ternaries with attributify. And even then It shouldn't break everything, right ? Maybe there is something else in the regex that breaks the styles completely in some edge case.
A solution would be to refactor from attributify to class only. But maybe someone has an idea on how to look into this.
mwohlan
changed the title
Attributify styles not applied since 0.51.6 (#2529)
Styles not applied since 0.51.6 (#2529) with Attributify enabled
Jun 1, 2023
I found the cause. The :display-value prop is matched by unocss and it breaks the entire css of the project silently. Is this behavior as expected since it kind of is a ternary expression ? But I still would prefer an error message of some sort.
UnoCSS version
0.51.12
Describe the bug
Since 0.51.6, specifically #2529, attributify styles are not being applied for some reason. The attributes are there:
But only some styles are being applied:
Downgrading to 0.51.5 works and afaik I am not using ternaries mentioned in #2529
Reproduction
I was not able to provide a minimal reproduction as of now. My current project is quite big and not open source. But maybe through some discussion and help I can get there
System Info
Unocss config
Validations
The text was updated successfully, but these errors were encountered: