File Block: Missing backward compatible styles for classic themes #45399
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
[Block] File
Affects the File Block
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Type] Bug
An existing feature does not function as intended
Description
In #41822, the button element styles were moved from each block to
theme.json
. And the style for representing the download button in the file block has also been removed from the block's stylesheet. Since there are no backward-compatible styles for the file block, classic themes without theme.json will apply unnatural styles:Just as the button block provides backward-compatible styles for the classic theme, I believe that this should be done for the file block as well.
Step-by-step reproduction instructions
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:
style.css
index.php
Screenshots, screen recording, code snippet
WordPress 6.0
Has the button-like style.
WordPress 6.1
The style of the download button is lost.
The text disappears (turns white) when the download link is focused.
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: