Cannot use :global() in scoped style in nesting rules like SCSS #10403
Labels
🍰 p2-nice-to-have
Priority 2: this is not breaking anything but nice to have it addressed.
scope: sfc
Vue version
3.4.19
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-ts-scss-63q1ja?file=src%2FApp.vue
Steps to reproduce
Write a DOM structure like
Without
:global()
Result:
The first line is in red and the second line is in blue, it is right.
If with
:global()
What is expected?
Expect to render same as above.
What is actually happening?
Result:
Both two line is in blue.
This is because it was render to
instead of
System Info
Any additional comments?
I know the correct syntax is
However if you use with SCSS/Less/... to writing nesting rules, this will be very troublesome.
The text was updated successfully, but these errors were encountered: