The CSS output in custom-css.php was using the background shorthand instead of background-color when setting the background color of elements. The caused other properties being unintentionally overwritten, like the background-repeat and background-size on cover blocks with an image and color set (see #957).
This PR replaces all uses of the background shorthand with background-color, in both twentytwenty_get_customizer_css() and twentytwenty_get_elements_array().
The CSS output in
custom-css.php
was using thebackground
shorthand instead ofbackground-color
when setting the background color of elements. The caused other properties being unintentionally overwritten, like thebackground-repeat
andbackground-size
on cover blocks with an image and color set (see #957).This PR replaces all uses of the
background
shorthand withbackground-color
, in bothtwentytwenty_get_customizer_css()
andtwentytwenty_get_elements_array()
.Fixes #957.