Skip to content

Commit

Permalink
Apply styles during transform
Browse files Browse the repository at this point in the history
  • Loading branch information
jrtashjian committed Oct 2, 2024
1 parent c3e3faa commit 79772b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-library/form/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ const transforms = {
{
type: 'block',
blocks: [ 'core/post-comments-form' ],
transform: ( {
...attributes
} ) => {
transform: ( attributes ) => {
return createBlock( 'omniform/form',
{
form_type: 'custom',
Expand All @@ -140,6 +138,8 @@ const transforms = {
layout: {
type: 'default',
},
style: attributes?.style,
fontSize: attributes?.fontSize,
},
[
createBlock( 'core/group',
Expand Down

0 comments on commit 79772b4

Please sign in to comment.