Are global button color variables useless?
-
One of the things to tackle when developing with WordPress for me are the buttons.
Why are the buttons colors in the global.scss, since they are not really working?
When I want to change for instance –button–color-background: var(–global–color-secondary); in my root file to –button–color-background: red; it is not working, also not when changing the variable –global–color-secondary to another color. Buttons use the variable –global–color-primary, but that changes also other elements that use the primary color.
Other variables like –button–border-width do work.
Would it be for the future better if there is an easier solution for the buttons.
Able to use variables.
Or for instance when I change the button colors in the editor, that it would be possible to also change the hover, active etc. options.Is theme.json a path/direction wordpress is taking to make themes (buttons) easier/ more customizable?
- The topic ‘Are global button color variables useless?’ is closed to new replies.