WordPress / twentytwenty

Twenty Twenty is included in Core as of WordPress 5.3 🎉 To report any issues, please go here: https://core.trac.wordpress.org/newticket
Other
301 stars 140 forks source link

Replace background shorthand with background-color in custom-css.php #968

Closed andersnoren closed 5 years ago

andersnoren commented 5 years ago

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().

Fixes #957.