Vue.js Scoped CSS/SCSS Deep Selector

Mar 12, 2020

Deep Selectors

If you want a selector in scoped styles to be "deep", i.e. affecting child components

<style scoped>.carousel-center {}.carousel-center >>> .carousel-caption {    top: 20px;}</style>

or

<style lang="scss" scoped>::v-deep .carousel-center {  .carousel-caption {    top: 20px;  }}</style>

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.