From 033bca66f85012515d5a657a580b3f14ceb4440b Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 27 Jun 2023 10:45:30 +0000 Subject: [PATCH] Twenty Nineteen: Always set background color and foreground color together. On the `` element, as a best practice background color and text color should always be set together. This makes it easier to quickly understand the underlying color scheme. Follow-up to [55960], [55964]. Props sabernhardt, audrasjb, kebbet. Fixes #45916. Built from https://develop.svn.wordpress.org/trunk@56062 git-svn-id: http://core.svn.wordpress.org/trunk@55574 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentynineteen/sass/elements/_elements.scss | 4 ---- .../themes/twentynineteen/sass/typography/_typography.scss | 1 + wp-content/themes/twentynineteen/style-rtl.css | 5 +---- wp-content/themes/twentynineteen/style.css | 5 +---- wp-includes/version.php | 2 +- 5 files changed, 4 insertions(+), 13 deletions(-) diff --git a/wp-content/themes/twentynineteen/sass/elements/_elements.scss b/wp-content/themes/twentynineteen/sass/elements/_elements.scss index edc11cdf91..d3120526b6 100644 --- a/wp-content/themes/twentynineteen/sass/elements/_elements.scss +++ b/wp-content/themes/twentynineteen/sass/elements/_elements.scss @@ -16,10 +16,6 @@ html { box-sizing: inherit; } -body { - background-color: $color__background-body; -} - a { @include link-transition; color: $color__link; diff --git a/wp-content/themes/twentynineteen/sass/typography/_typography.scss b/wp-content/themes/twentynineteen/sass/typography/_typography.scss index 055b7a63d4..84438b2efa 100644 --- a/wp-content/themes/twentynineteen/sass/typography/_typography.scss +++ b/wp-content/themes/twentynineteen/sass/typography/_typography.scss @@ -6,6 +6,7 @@ html { body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + background-color: $color__background-body; color: $color__text-main; @include font-family( $font__body ); font-weight: 400; diff --git a/wp-content/themes/twentynineteen/style-rtl.css b/wp-content/themes/twentynineteen/style-rtl.css index cab1ba0dcc..aa6b58a191 100644 --- a/wp-content/themes/twentynineteen/style-rtl.css +++ b/wp-content/themes/twentynineteen/style-rtl.css @@ -2219,6 +2219,7 @@ html { body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + background-color: #fff; color: #111; font-family: "NonBreakingSpaceOverride", "Hoefler Text", Garamond, "Times New Roman", serif; font-weight: 400; @@ -2493,10 +2494,6 @@ html { box-sizing: inherit; } -body { - background-color: #fff; -} - a { transition: color 110ms ease-in-out; color: #0073aa; diff --git a/wp-content/themes/twentynineteen/style.css b/wp-content/themes/twentynineteen/style.css index e43f6647c7..64a33800bc 100644 --- a/wp-content/themes/twentynineteen/style.css +++ b/wp-content/themes/twentynineteen/style.css @@ -2219,6 +2219,7 @@ html { body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + background-color: #fff; color: #111; font-family: "NonBreakingSpaceOverride", "Hoefler Text", Garamond, "Times New Roman", serif; font-weight: 400; @@ -2493,10 +2494,6 @@ html { box-sizing: inherit; } -body { - background-color: #fff; -} - a { transition: color 110ms ease-in-out; color: #0073aa; diff --git a/wp-includes/version.php b/wp-includes/version.php index 527d113739..ff39a3dd5c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-56061'; +$wp_version = '6.3-alpha-56062'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.