radix-ui / themes

Radix Themes is an open-source component library optimized for fast development, easy maintenance, and accessibility. Maintained by @workos.

Home Page:https://radix-ui.com/themes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pseudo Element Variable Access

jd-carroll opened this issue · comments

I am attempting to style a particular portion of my layout with the ::before pseudo element (an indicator in the side-nav).

It would appear as though pseudo elements do not inherit variables defined in a parent (including :root).

Has anyone else encountered this? If so, is there an easy way people have found to copy (since that is the only option) all the variable declarations to the pseudo element?

It would appear as though pseudo elements do not inherit variables defined in a parent (including :root).

That's not true, CSS variables are inherited by pseudos just fine.