-
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
Adding a block style with a border to a list block does not work on the front screen #66885
Comments
I was able to reproduce this issue on Gutenberg Plugin 19.6.1 and WordPress version 6.8-alpha-59361 |
Hi @shimotmk👋, I have provided a solution for this in PR🙇, but in the meanwhile you can also use this method for applying your style changes,
|
I've done some preliminary digging into the root cause of this issue today however it might take some more time before a solid solution is ready for review. In the meantime, there is a little more information available on the bug in my review of the initial proposed fix. There are a couple of potential issues that I'll address with a PR soon:
|
After digging deeper, I believe I've isolated the cause of the malformed block style variation selectors on the frontend. The short explanation is the replacement of block selectors with the variation selector was expecting the block class to only be used preceding another selector, such as with the image block e.g. I have a draft PR up in #67061. I'm out of time today, but tomorrow I'll create a backport for that PR, give it a further test, then flag it ready for review. |
Description
Adding a style with a border using style_data in register_block_style does not work on the front screen
Group etc. work
Step-by-step reproduction instructions
Example:
Go to the post page
Place the list block and apply the block style from earlier
You can see that the style is not reflected on the front screen.
Screenshots, screen recording, code snippet
list.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: