Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File block: Re-add frontend styles for classic themes #4045

Closed

Conversation

t-hamano
Copy link

@t-hamano t-hamano commented Feb 10, 2023

Trac ticket: https://core.trac.wordpress.org/ticket/57688

This PR adds text color and background color to the file block on the frontend, which is lost in the Classic theme.

Testing Instruction

Classic themes such as Twenty Twenty One and Twenty Twenty cannot be reproduced because they have styles for file blocks. Therefore, create a plain theme with the following files:

empty-classic/style.css

/*
Theme Name: Empty Classic
*/

empty-classic/index.php

<?php
wp_head();
the_post();
the_content();
wp_footer();
  • Insert the file block.
  • Confirm that the text color and background color are applied correctly on frontend.

Before

before

After

after

@t-hamano t-hamano marked this pull request as ready for review February 10, 2023 03:35
Copy link
Contributor

@hellofromtonya hellofromtonya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready for commit 👍

@hellofromtonya
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants