Replies: 6 comments
-
If it this can work reliably in all cases, that would be a great idea. I just want to point out that within the current major version of Vue, this should be an opt-in change as this could easily break existing applications that rely on that increased specificity (often unbeknownst to the developers). |
Beta Was this translation helpful? Give feedback.
-
so basically allow :where() and :is()? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Ah, vuejs/core#8929 is a bit different. It still generates the scoped attribute like So, if I have something like this: In future, there might be a way to opt into style generation like this: .foo:where([data-v-7ba5bd90]) {
color: red;
} However, I agree this might not be desirable in some cases, and it would be easier to just do it with a custom postcss plugin instead. IG this can likely be closed as not planned. |
Beta Was this translation helpful? Give feedback.
-
This issue is not about supporting |
Beta Was this translation helpful? Give feedback.
-
Yes, these supports still require further consideration |
Beta Was this translation helpful? Give feedback.
-
What problem does this feature solve?
Currently styles are generated like this:
It would be better if there is some option that can generate styles like this:
In the above output, the specificity of the selector is preserved.
What does the proposed API look like?
Some option at config level like:
Beta Was this translation helpful? Give feedback.
All reactions