You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I have a custom element named x-toggle that can be either on or off. I want to style it based on its state and a color mode (light or dark). The color mode is specified by adding a CSS class (.ui-light or .ui-dark) to a parent element (usually html). Is there any way I can achieve the following style rules? Currently, this is impossible.
What about introducing :parent-context(<compound-selector>)? Unlike :host-context(<compound-selector>), which matches the host if a parent element matches <compound-selector>, :parent-context only matches a parent element.
Let's say I have a custom element named
x-toggle
that can be either on or off. I want to style it based on its state and a color mode (light or dark). The color mode is specified by adding a CSS class (.ui-light
or.ui-dark
) to a parent element (usuallyhtml
). Is there any way I can achieve the following style rules? Currently, this is impossible.The text was updated successfully, but these errors were encountered: