[Vuejs]-Vue js โ€“ making a style to be inherited by children components

0๐Ÿ‘

โœ…

I think the only way to make a style intended for child components only, while not defining a selector for the parent, is simply to define this style in the child component.

Cordially!

7๐Ÿ‘

::v-deep is the equivalent that wonโ€™t upset VSCode linter:

<style scoped>
    ::v-deep .b {
        ...
    }
</style>
๐Ÿ‘คgss

Leave a comment