Skip to content

Fix scoped CSS to work with arbitrary outer HTML, not just internal UI lib #75

Open
@davezuch

Description

@davezuch

@thomashoneyman reported on Jira:

I'm attempting to mount components (with their scoped CSS) directly into HTML that has an external stylesheet. Some of our styles now clash, like our resets specific to UI kit.

Expected behavior: I can include cn-tailwind.scoped.css in the Select documentation without it affecting any of the page styles. I can then build a typeahead using the Ocelot styles (working around the parent CSS needed).

Note: If this doesn't seem worth the effort we could just include a small custom stylesheet to write styles for the few example components we need.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions