Unverified Commit 039c98a1 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt Committed by GitHub

docs: illustrate usage of alternative deep selector expressions (#1647)

Without examples of the exact syntax the use of `::v-deep` and `/deep/` as alternative deep selectors is somewhat ambiguous as it’s not entirely clear where these expressions are expected.
parent 1c2436a3
......@@ -62,7 +62,19 @@ The above will be compiled into:
.a[data-v-f3f3eg9] .b { /* ... */ }
```
Some pre-processors, such as Sass, may not be able to parse `>>>` properly. In those cases you can use the `/deep/` or `::v-deep` combinator instead - both are aliases for `>>>` and work exactly the same.
Some pre-processors, such as Sass, may not be able to parse `>>>` properly. In those cases you can use the `/deep/` or `::v-deep` combinator instead - both are aliases for `>>>` and work exactly the same. Based on the example above these two expressions will be compiled to the same output:
``` html
<style scoped>
.a::v-deep .b { /* ... */ }
</style>
```
``` html
<style scoped>
.a /deep/ .b { /* ... */ }
</style>
```
## Dynamically Generated Content
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment