Skip to content

Commit

Permalink
Editor: Restores file block button styles for classic themes.
Browse files Browse the repository at this point in the history
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:
* [WordPress/gutenberg#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
  • Loading branch information
VenusPR committed Feb 13, 2023
1 parent 54d381b commit 672edbc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions wp-includes/css/classic-themes.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@

font-size: 1.125em;
}

.wp-block-file__button {
background: #32373c;
color: #ffffff;
text-decoration: none;
}
2 changes: 1 addition & 1 deletion wp-includes/css/classic-themes.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 672edbc

Please sign in to comment.