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
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
show--consentandshow--preferencescould be toggled on theuserConfig.rootelement:hostselectorI've prepared #816 to demonstrate the proposed changes
Additional details
No response