From 1765de07703227b95f0b78a6543cc7c8ac11eb18 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Sun, 9 Jul 2023 15:49:23 +0000 Subject: [PATCH] Twenty Twenty-One: Add `b` and `strong` elements to editor styles. Sets `font-weight: 700` for these elements in the editor, in order to match the front end styles. It overrides the default admin `font-weight` of `600` for these HTML elements. Props nkeller15, audrasjb, sabernhardt, pavanpatil1, iamfarhan09, poena. Fixes #58383. Built from https://develop.svn.wordpress.org/trunk@56172 git-svn-id: http://core.svn.wordpress.org/trunk@55684 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwentyone/assets/css/ie-editor.css | 5 +++++ .../themes/twentytwentyone/assets/css/style-editor.css | 5 +++++ .../themes/twentytwentyone/assets/sass/style-editor.scss | 6 ++++++ wp-includes/version.php | 2 +- 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwentyone/assets/css/ie-editor.css b/wp-content/themes/twentytwentyone/assets/css/ie-editor.css index 954d0dcb8a..b956827cad 100644 --- a/wp-content/themes/twentytwentyone/assets/css/ie-editor.css +++ b/wp-content/themes/twentytwentyone/assets/css/ie-editor.css @@ -119,6 +119,11 @@ } } +b, +strong { + font-weight: 700; +} + blockquote { padding: 0; position: relative; diff --git a/wp-content/themes/twentytwentyone/assets/css/style-editor.css b/wp-content/themes/twentytwentyone/assets/css/style-editor.css index ccd7195d5e..8f940eaa75 100644 --- a/wp-content/themes/twentytwentyone/assets/css/style-editor.css +++ b/wp-content/themes/twentytwentyone/assets/css/style-editor.css @@ -302,6 +302,11 @@ } } +b, +strong { + font-weight: 700; +} + blockquote { padding: 0; position: relative; diff --git a/wp-content/themes/twentytwentyone/assets/sass/style-editor.scss b/wp-content/themes/twentytwentyone/assets/sass/style-editor.scss index 6106d38ab7..151413c61a 100644 --- a/wp-content/themes/twentytwentyone/assets/sass/style-editor.scss +++ b/wp-content/themes/twentytwentyone/assets/sass/style-editor.scss @@ -9,6 +9,12 @@ @import "03-generic/breakpoints"; +// Add relevant styles from "04-elements/misc" +b, +strong { + font-weight: 700; +} + @import "04-elements/blockquote"; @import "04-elements/media"; @import "04-elements/forms-editor"; diff --git a/wp-includes/version.php b/wp-includes/version.php index 220236a46f..7fe59dfe94 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta3-56171'; +$wp_version = '6.3-beta3-56172'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.