Skip to content

Inline style from Vue componet #214

Closed
@stoivo

Description

@stoivo

I am abstraction some parts of our app in a web component. I would like them not to inherit any of the CSS from elsewhere so they are isolated. In my understanding, it is best practice for packaged web components to use shadow-root.

To achieve this I want to inline the styles from these components. I have seen this as one option but I want to ask if you have a recommended way of adding this?

I have looked at vaadin as one example of someone who is publishing custom element packages. Here is one example of what they do with the CSS
Screenshot 2020-06-24 at 12 41 01

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions