Currently, if you add custom classes to a dynamic block (block rendered through a Drupal template file) through Gutenberg UI, these classes are not rendered in the front end.

As there is a UI for adding custom classes in Gutenberg (under "Advanced" in the sidebar), and as they are rendered both for normal Gutenberg blocks and Drupal blocks, they should also be rendered for dynamic blocks.

MR should solve this.

Issue fork gutenberg-3421059

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vegardjo created an issue. See original summary.

vegardjo’s picture

Issue summary: View changes

vegardjo’s picture

Status: Active » Needs review

More context: https://drupal.slack.com/archives/CCTTWUN87/p1706861598178329 - thanks to codebymikey for guidance!

marcofernandes made their first commit to this issue’s fork.

marcofernandes’s picture

Status: Needs review » Fixed

Added to 3.x

marcofernandes’s picture

  • marcofernandes committed aa62f586 on 3.x
    Issue #3421059 by vegardjo, marcofernandes: Render custom classes for...

  • marcofernandes committed aa62f586 on 3.0.x
    Issue #3421059 by vegardjo, marcofernandes: Render custom classes for...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.