WordPress/gutenberg

Cover block: empty block shows as black box on frontend

開放

#10,854 建立於 2018年10月21日

 (7 則留言) (1 個反應) (0 位負責人)JavaScript (3,893 個分叉)batch import
Good First Issue[Block] Cover[Feature] Blocks[Priority] Low[Status] In Progress[Type] Enhancement

倉庫指標

星標
 (9,607 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南