Cover Image Styled Incorrectly #12179
Labels
[Block] Cover
Affects the Cover Block - used to display content laid over a background image
[Package] Block library
/packages/block-library
[Package] Components
/packages/components
Milestone
Describe the bug
When the components stylesheet is output before the block library stylesheet, the cover image block is black (making the text unreadable) and too tall.
In the plugin, the block library stylesheet has always been printed out before the components one, so this issue has not come up. But in WordPress Core, the stylesheets are being loaded in a different order.
The order can be enforced in Core using dependencies, but that is not really the correct solution.
For more context, see Core Trac 45279
To Reproduce
Using any of the WordPress 5.0 betas, insert a cover image. You can also add
wp-components
as a dependency ofwp-block-library
to force the stylesheets to reorder in the plugin.Expected behavior

The block should be styled like so:
The text was updated successfully, but these errors were encountered: