From 854f388d0273ecc38c3ecdd9887362b0dbb51b61 Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Mon, 13 Feb 2023 20:50:19 +0000 Subject: [PATCH] Editor: Restores file block button styles for classic themes. Adds styles into `wp-includes/css/classic-themes.css` to restore file block button element styling for classic themes. Why? In [54257] and [54118], button element styles were moved from each block to `theme.json`. For the file block, the download button styles were removed from the block's stylesheet. These changes impacted themes without a `theme.json` file (i.e. classic themes). This changeset restores the styles for backwards-compatibility. References: * [https://github.com/WordPress/gutenberg/pull/47686 Gutenberg PR 47686] Follow-up to [54257], [54118]. Props wildworks, scruffian, mamaduka, ntsekouras. Fixes #57688. Built from https://develop.svn.wordpress.org/trunk@55323 git-svn-id: http://core.svn.wordpress.org/trunk@54856 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/css/classic-themes.css | 6 ++++++ wp-includes/css/classic-themes.min.css | 2 +- wp-includes/version.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wp-includes/css/classic-themes.css b/wp-includes/css/classic-themes.css index d77a25a3b9..4d54a1891e 100644 --- a/wp-includes/css/classic-themes.css +++ b/wp-includes/css/classic-themes.css @@ -16,3 +16,9 @@ font-size: 1.125em; } + +.wp-block-file__button { + background: #32373c; + color: #ffffff; + text-decoration: none; +} diff --git a/wp-includes/css/classic-themes.min.css b/wp-includes/css/classic-themes.min.css index 695cb3c362..4d27f46044 100644 --- a/wp-includes/css/classic-themes.min.css +++ b/wp-includes/css/classic-themes.min.css @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -.wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em} \ No newline at end of file +.wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} \ No newline at end of file diff --git a/wp-includes/version.php b/wp-includes/version.php index bbab6f8dc3..6fbeb0a26e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta1-55322'; +$wp_version = '6.2-beta1-55323'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.