Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Started > Fundamentals of Block Development: Clarify requirements to add editor styles for a block #61092

Open
juanmaguitar opened this issue Apr 25, 2024 · 0 comments
Assignees
Labels
[Type] Developer Documentation Documentation for developers

Comments

@juanmaguitar
Copy link
Contributor

juanmaguitar commented Apr 25, 2024

As per this conversation in the #outreach channel at Make WordPress Slack and the following feedback provided by @luminuu

But maybe the tutorial should be updated/enhanced to reflect these kind of things:

  • The editor.css file has to be called from the index.js or the edit.js, if that's an extra file with import /.editor.css
  • In the block.json, the editorStyle needs to refer to the index.css file, because that's the one that is generated in the build folder
    I guess I won't be the only one who will struggle with this.

The Getting Started section needs to be reviewed to ensure that the feedback above is addressed and that the requirements for adding editor styles for a block are clear. Also evaluate id such explanations belong to #56275 and plan proper connections/links from current subpages (File structure of a block or block.json for example) if that's the best course of action

cc: @ndiego

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Developer Documentation Documentation for developers
Projects
None yet
Development

No branches or pull requests

1 participant