WC defined CSS variables aren’t actually used
-
I see in woocommerce.css there are several CSS variables used for color definitions. I can override them in my theme of course, by doing something like:
:root { --wc-blue: #8ed1fc; }
But that doesn’t actually do anything because Woocommerce elements are still hard coded to specific hex codes like this:
.woocommerce-info { border-top-color: #1e85be; }
It would be fantastic if the Woocommerce team could rewrite woocommerce.css to actually use the variables that are declared at the beginning of the file so they can easily be overridden by themes. I have seen other plugins do this recently. Honestly, I’m not sure the purpose of having those variables declared in the CSS if they’re not ever used or overriddable.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WC defined CSS variables aren’t actually used’ is closed to new replies.