-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add generated block classname to dynamic blocks #24546
Conversation
Size Change: 0 B Total Size: 1.16 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I haven't tested all the blocks that have been updated, but this seems to work well and I can verify it is adding the expected class name.
A bit of a side note - I noticed the . edit: nevermind, it sounds like it was an oversight 😄Post Content
block never had the expected wp-block-post-content
class added to it before, this will add it (but we can always opt it out if necessary). I don't see any reason it shouldn't have the class, but I'm figured I would point it out if others might have any insight on that. 🤔
f02b8bd
to
a02f75f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
The dev note here should clarify how this impacts the output of the dynamic blocks. |
Follow up to #24483
In different dynamic blocks, we support block default class names in the server in an Adhoc way and now that we have the block-supports handling on the server as well, this PR implements it automatically for all these blocks.
the remaining hook after this PR will be "anchor".
Testing instructions
Check that dynamic blocks render the default block class names
wp-block-*
on the frontend.