oruga-ui / theme-oruga

🦋 Customization of Oruga components with a custom styling
https://oruga-ui.com
MIT License
5 stars 2 forks source link

[Feature] Allow the use of `:host` in variable definitions #32

Closed fabiiomiiguel closed 4 months ago

fabiiomiiguel commented 6 months ago

I'm currently using web components with Vue 3, oruga-ui and theme-oruga.

With the release 3.0.0 the variables stop working correctly because the web components rely on shadow-dom, which doesn't use the :root selector.

I created a pull request to allow the usage of :host for web components.

This code was based on this pull request from bootstrap.

What do you think?

mlmoravek commented 6 months ago

Nice! Thanks for the improvement :) Will be released soon!