Skip to content

Commit

Permalink
Bring back style attribute used by mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Apr 19, 2022
1 parent dc0523c commit a993839
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/quote/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default function QuoteEdit( {
insertBlocksAfter,
clientId,
className,
style,
} ) {
const { align, citation } = attributes;

Expand All @@ -89,6 +90,7 @@ export default function QuoteEdit( {
className: classNames( className, {
[ `has-text-align-${ align }` ]: align,
} ),
...( ! isWebPlatform && { style } ),
} );
const innerBlocksProps = useInnerBlocksProps( blockProps, {
template: TEMPLATE,
Expand Down Expand Up @@ -129,6 +131,7 @@ export default function QuoteEdit( {
__unstableOnSplitAtEnd={ () =>
insertBlocksAfter( createBlock( 'core/paragraph' ) )
}
{ ...( ! isWebPlatform ? { textAlign: align } : {} ) }
/>
) }
</BlockQuotation>
Expand Down

0 comments on commit a993839

Please sign in to comment.