WordPress/gutenberg

Cover block: empty block shows as black box on frontend

Open

#10,854 创建于 2018年10月21日

在 GitHub 查看
 (7 评论) (1 反应) (0 负责人)JavaScript (9,607 star) (3,893 fork)batch import
Good First Issue[Block] Cover[Feature] Blocks[Priority] Low[Status] In Progress[Type] Enhancement

描述

Describe the bug If you insert a cover block and don't upload any image or video, it will appear as a black box in the frontend.

Expected behavior If the block in the backend is empty, I would expect the placeholder not to render any content.

Tested with Gutenberg 4.1 RC 1 + Twenty Seventeen as well as Twenty Nineteen.

贡献者指南

Cover block: empty block shows as black box on frontend · WordPress/gutenberg#10854 | Good First Issue