Skip to content

[Feat]: Improved Web Component Support #817

@rubinda

Description

@rubinda

Description

When using your library, I've noticed that it's not functioning out-of-the-box for WebComponents, I've been testing it with lit.

The main issue is that due to Shadow DOM some CSS classes and variables do not get properly passed to the element if it's part of a nested web component.

Proposed solution

  • classes show--consent and show--preferences could be toggled on the userConfig.root element
  • CSS variables should also be instantiated for the :host selector

I've prepared #816 to demonstrate the proposed changes

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageyet to be reviewed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions