-
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 element-selector to group block #28576
Conversation
Size Change: +121 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
Tested with TT1 Blocks, works well. |
@aristath, any idea why so many e2e tests related to FSE fail with this branch? The change proposed to align with the Group block makes sense. I like that it's inside the advanced section since it's very technical but shares the same characteristics as the class name or anchor. |
It doesn't seem to be related to this PR... I can see the same tests are currently failing on the |
`main` is a valid HTML element that is especially valuable for KSES to support in light of full site editing. Related: WordPress/gutenberg#28576 for the addition of `main` to the group block. Fixes #53156. Props glendaviesnz. git-svn-id: https://develop.svn.wordpress.org/trunk@50987 602fd350-edb4-49c9-b593-d223f7449a82
`main` is a valid HTML element that is especially valuable for KSES to support in light of full site editing. Related: WordPress/gutenberg#28576 for the addition of `main` to the group block. Fixes #53156. Props glendaviesnz. git-svn-id: https://develop.svn.wordpress.org/trunk@50987 602fd350-edb4-49c9-b593-d223f7449a82
`main` is a valid HTML element that is especially valuable for KSES to support in light of full site editing. Related: WordPress/gutenberg#28576 for the addition of `main` to the group block. Fixes #53156. Props glendaviesnz. Built from https://develop.svn.wordpress.org/trunk@50987 git-svn-id: http://core.svn.wordpress.org/trunk@50596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
`main` is a valid HTML element that is especially valuable for KSES to support in light of full site editing. Related: WordPress/gutenberg#28576 for the addition of `main` to the group block. Fixes #53156. Props glendaviesnz. Built from https://develop.svn.wordpress.org/trunk@50987 git-svn-id: https://core.svn.wordpress.org/trunk@50596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
`main` is a valid HTML element that is especially valuable for KSES to support in light of full site editing. Related: WordPress/gutenberg#28576 for the addition of `main` to the group block. Fixes #53156. Props glendaviesnz. Built from https://develop.svn.wordpress.org/trunk@50987 git-svn-id: http://core.svn.wordpress.org/trunk@50596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Description
This is a continuation of #27101
In that PR we added an element selector to the template-part block. This PR copies the same logic to group blocks.
Came up in WordPress/theme-experiments#180 where it became evident that the
<main>
element was missing in the theme. Though editing it in templates is the preferred way to handle things for theme-included templates, there's currently no way to do the same for user-created templates.How has this been tested?
Tested with existing group blocks and verified nothing breaks, there's no backwards-compatibility issues.
Tested with new group blocks and verified that the tag gets properly applied, saved and presented.
Screenshots
The control was added to the Advanced section - just like in the template-part block.
Checklist:
I've included developer documentation if appropriate.I've updated all React Native files affected by any refactorings/renamings in this PR.