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

FSE blocks are missing additional CSS classes on the front #22097

Closed
carolinan opened this issue May 5, 2020 · 2 comments
Closed

FSE blocks are missing additional CSS classes on the front #22097

carolinan opened this issue May 5, 2020 · 2 comments
Labels
CSS Styling Related to editor and front end styles, CSS-specific issues. Needs Testing Needs further testing to be confirmed. [Type] Task Issues or PRs that have been broken down into an individual action to take

Comments

@carolinan
Copy link
Contributor

carolinan commented May 5, 2020

Describe the bug
The FSE specific blocks does not output the CSS classes added in the Additional CSS option on the front.
(The CSS class saves fine in the editor.)

I have tested:
site title
post title
post content
post comments
post comments count
post comments form
post date
post excerpt
post featured image
post tags

I have not tested post author due to a PHP error.

To reproduce
Steps to reproduce the behavior:

  1. Enable full site editing
  2. Add any of the blocks listed above
  3. Add a CSS class in the option in the block sidebar.
  4. Save and view the source code of the front

Expected behavior
I expect the CSS class name to be available on the front.

Editor version (please complete the following information):

  • WordPress version: 5.4.1
  • Gutenberg: Master, latest commit was: b73bb6d

Desktop (please complete the following information):
Windows 10
Chrome version: 81.0.4044.129

@annezazu annezazu added CSS Styling Related to editor and front end styles, CSS-specific issues. Needs Testing Needs further testing to be confirmed. labels May 6, 2020
@mtias mtias added [Type] Task Issues or PRs that have been broken down into an individual action to take [Feature] Full Site Editing labels May 7, 2020
@mtias
Copy link
Member

mtias commented May 7, 2020

This also reminds me we need to look at support for post_class and body_class in the appropriate wrappers.

@carolinan
Copy link
Contributor Author

Closing this because it is a duplicate of #21903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS Styling Related to editor and front end styles, CSS-specific issues. Needs Testing Needs further testing to be confirmed. [Type] Task Issues or PRs that have been broken down into an individual action to take
Projects
None yet
Development

No branches or pull requests

3 participants