Open christophrumpel opened 6 years ago
Hmm I don't have a whole lot of experience with web components, but maybe this has something to do with how vue-cli deals with style scoping? I'll flag this as a bug request, and hopefully someone will address it asap! I'm also doing a bit of work on web components for another project I'm working on, so if I encounter a fix I'll submit a PR asap!
Thanks @quinnlangille !
@christophrumpel in the mean time, seems like there are some possible solutions here: https://github.com/vuejs/vue-web-component-wrapper/issues/12
Ah cool! Thanks, will try that.
Any update ?
Bug Report
Current Behavior I am using the great carousel in my VUE CLI project and it works fine. But when I export the project to a web component through the VUE CLI build service, then the carousel styles are outside of the web component and therefore not reachable. (see screenshots below)
Input Code and steps to reproduce
demo.html
in thedist
folderExpected behavior/code This is where I am not sure. I would love to see the styles inside the web component but I am not sure if this is possible.
Babel Configuration (.babelrc, package.json, cli command)
babel.config.js
package.json
Environment
Possible Solution
Additional context/Screenshots
(Styles are outside of the web component)
(Styles for eg. VueCarousel-inner are not applied)