Open bradhogan opened 9 months ago
Thanks for the report. I believe this issue will be resolved once #55755 is merged.
I believe this issue will be resolved once https://github.com/WordPress/gutenberg/pull/55755 is merged.
@t-hamano is correct.
The registration of the block style variation is still working as evidenced by it showing up as an option in the UI. The problem is the form block hardcoded a class name into its saved markup preventing the application of the custom block style. It is that problem that will be fixed by #55755.
Description
The register block style option appears but when checked, the class is not applied to the form block.
Step-by-step reproduction instructions
Add the following to your functions.php:
Make sure you have Gutenberg > Experiments > form and input blocks checked
Add a new page
Add a form block
Check the custom style in the components panel for the "Dark Background" style
Update
View source in front-end and notice the wp-block-form does not also include is-style-dark-background
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes