The data-view block doesn't declare its styles in block.json, so WP won't carry them into the editor iframe on its own. We work around that in Screen.php, reading build/editor.css off disk and inlining it into the iframe's style list. It works, but there's a FIXME on it: we're hand-rolling what WP already does for any block that registers its own assets.
Proposed solution: give the block an editorStyle in block.json so WP loads it into the iframe, then drop the manual inlining in Screen.php.
The data-view block doesn't declare its styles in
block.json, so WP won't carry them into the editor iframe on its own. We work around that inScreen.php, readingbuild/editor.cssoff disk and inlining it into the iframe's style list. It works, but there's a FIXME on it: we're hand-rolling what WP already does for any block that registers its own assets.Proposed solution: give the block an
editorStyleinblock.jsonso WP loads it into the iframe, then drop the manual inlining inScreen.php.