Skip to content

Block Transform Feature : Doesn't preserves styling with List block #67619

@jankimoradiya

Description

@jankimoradiya

Description

When we transform a paragraph block into a heading block using the block transform feature, it preserves the same styling. However, when transforming a paragraph block into a list block, the paragraph styling does not carry over. The block then reverts to a paragraph block, and the initial paragraph styling is removed.

Step-by-step reproduction instructions

  1. Go to the block editor.
  2. Add Paragraph block.
  3. Apply typography like color & size.
  4. Transform paragraph to heading block ( it preserves the same styling of paragraph ).
  5. Then revert transform to the paragraph block ( it preserves the same styling of the paragraph that initially has).
  6. Then Transform the paragraph to the List block. the paragraph styling will not carry over to the list block.
  7. Then revert transform to the paragraph block. The initial paragraph styling will be removed.

Screenshots, screen recording, code snippet

Selected.December.05.2024.16_00_09.mp4

Environment info

  • WordPress Version: 6.7.1
  • Active Theme: Twenty Twenty-Four

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] ListAffects the List Block[Feature] Block TransformsBlock transforms from one block to another[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions