htmlburger/carbon-fields

CSS was added to the iframe incorrectly

hadamlenz opened this issue · 0 comments

Version

  • Carbon Fields: 3.6.3
  • WordPress: 6.5.2
  • PHP: 7.4

Expected Behavior

Not to get warnings, load the css using the correct hook

Actual Behavior

Warnings

Carbon-fields-core-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.

carbon-fields-blocks-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.

Container definition

return false

it happens with all the containers I have

Steps to Reproduce the Problem

1.run carbon fields in the site-editor.php
2.look in the browser console

Comments

I don't see enqueue_block_assets or enqueue_block_editor_assets anywhere. There are some pretty good hints as to how to use them in the comments on those pages