Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS problem with shadow root #118

Open
F0lamie opened this issue Aug 18, 2022 · 0 comments
Open

CSS problem with shadow root #118

F0lamie opened this issue Aug 18, 2022 · 0 comments

Comments

@F0lamie
Copy link

F0lamie commented Aug 18, 2022

Hello,

I'm facing a problem with the componant inside my own Web Componant.

My component has 2 main modes, development and build
When in dev mode, the CSS of vue-horizontal is indide the head of my page (so far no problem).

The real problème is when my Web Component is builded.
The CSS of vue-horizontal is still being in the head of the page and not inside my shadow root

<head>
    <style type="text/css">vue-horizontal CSS</style>
</head>
<body>
    <my-component>
        #shadow-root
    </my-component>
</body>

While I'd like to have something like this:

<head>
</head>
<body>
    <my-component>
        #shadow-root
            <style type="text/css">vue-horizontal CSS</style>
    </my-component>
</body>

I've search inside the node-module of vue-horizontal to find a css file to import but unfortunatly there's none.

I'm looking for a solution or simply ask you if it's possible to split the css declaration of vue-horizontal in a css file in order to import it in my component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant