Skip to content

Commit

Permalink
Pullquote block: Fix citation markup in Editor (#39414)
Browse files Browse the repository at this point in the history
* Pullquote: Fix citation markup in Editor

* Fix linting error
  • Loading branch information
ndiego authored Mar 20, 2022
1 parent b067d31 commit 9a21a08
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/block-library/src/pullquote/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ import {
useBlockProps,
} from '@wordpress/block-editor';
import { createBlock } from '@wordpress/blocks';
import { Platform } from '@wordpress/element';

/**
* Internal dependencies
*/
import { Figure } from './figure';
import { BlockQuote } from './blockquote';

/**
* Internal dependencies
*/
const isWebPlatform = Platform.OS === 'web';

function PullQuoteEdit( {
attributes,
Expand Down Expand Up @@ -70,6 +69,8 @@ function PullQuoteEdit( {
{ shouldShowCitation && (
<RichText
identifier="citation"
tagName={ isWebPlatform ? 'cite' : undefined }
style={ { display: 'block' } }
value={ citation }
aria-label={ __( 'Pullquote citation text' ) }
placeholder={
Expand Down

0 comments on commit 9a21a08

Please sign in to comment.