Closed safejace closed 2 years ago
Can you create a demo in Codesandbox?
can you link me to an example of codesandbox working with vuetensils loaded up.
I just tried to get it working and it's not loading the vuetensils despite adding as a dependency
thanks @AustinGil
set it up here: https://codesandbox.io/s/vue-3-vuetensils-alert-forked-pzkdou?file=/src/App.vue
if you turn off/on the scoped
attribute on the style section in MyAlert.vue
should show you what I mean
A, gotcha. Yeah, that is not a problem with Vuetensils as much as it's a known problem with Vue. See https://vue-loader.vuejs.org/guide/scoped-css.html#deep-selectors
There are a couple solutions. Use on of the "deep" selectors (>>>
, /deep/
, ::v-deep
):
<style scoped>
>>> .vts-alert__dismiss {
background: red;
}
</style>
Or you can combine both scoped and not scoped styles:
<style>
.vts-alert__dismiss {
background: red;
}
</style>
<style scoped>
/** scoped stypes */
</style>
I'm wrapping the
<VAlert>
in my own componentwhen inspecting the element... the dismissible item doesn't get the
scoped
[data-v-xxx]
added to it