I have this sample code:
<template>
<custom-button>
#shadow-root (open)
<a href="#"></a>
<other-custom></other-custom>
</custom-button>
</template>
<style scoped lang="scss">
custom-button{
:deep(a) {
outline:1px red solid;
}
}
</style>
But the style does not apply. I tried with scoped and slotted but no results. How can apply a style to the anchor? Thank you.
NEW SAMPLE
test.vue
<template>
<custom-button>
</custom-button>
</template>
<style scoped lang="scss">
.custom-button {
:deep(a) {
outline: 3px red solid;
}
}
</style>
custom-button.vue
<template>
<a href="#">Link</a>
</template>
<script>
export default {
name: 'custom-button',
};
</script>
This does not work using Tolbxela demo.