Closed benbender closed 2 years ago
I'm using "nested" props to encapsulate properties in components while having the ability of global defaults at the same time (in-depth explanation here)
Anyway, the following syntax isn't picked up:
border-radius: var(--button-radius, var(--radius, 0.25em));
--button-radius isn't defined, but --radius is. --radius gets purged by the lib... 😢 If I remove the nesting, --radius is picked up.
--button-radius
--radius
Turns out the problem isn't the nesting, but the undefined, first prop which led to skipping of the later ones. Fix + test in #19.
I'm using "nested" props to encapsulate properties in components while having the ability of global defaults at the same time (in-depth explanation here)
Anyway, the following syntax isn't picked up:
--button-radius
isn't defined, but--radius
is.--radius
gets purged by the lib... 😢 If I remove the nesting,--radius
is picked up.