Skip to content

Commit

Permalink
Fix icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Feb 20, 2024
1 parent 9c14778 commit 5dfe5c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/block-library/src/pullquote/edit.js
Expand Up @@ -14,6 +14,7 @@ import {
useBlockProps,
} from '@wordpress/block-editor';
import { Platform } from '@wordpress/element';
import { verse } from '@wordpress/icons';

/**
* Internal dependencies
Expand Down Expand Up @@ -72,6 +73,7 @@ function PullQuoteEdit( {
isSelected={ isSelected }
attributes={ attributes }
setAttributes={ setAttributes }
icon={ verse }
label={ __( 'Pullquote citation text' ) }
placeholder={
// translators: placeholder text used for the citation
Expand Down
2 changes: 2 additions & 0 deletions packages/block-library/src/quote/edit.js
Expand Up @@ -18,6 +18,7 @@ import { BlockQuotation } from '@wordpress/components';
import { useDispatch, useRegistry } from '@wordpress/data';
import { Platform, useEffect } from '@wordpress/element';
import deprecated from '@wordpress/deprecated';
import { verse } from '@wordpress/icons';

/**
* Internal dependencies
Expand Down Expand Up @@ -110,6 +111,7 @@ export default function QuoteEdit( {
attributes={ attributes }
setAttributes={ setAttributes }
__unstableMobileNoFocusOnMount
icon={ verse }
label={ __( 'Quote citation' ) }
placeholder={
// translators: placeholder text used for the
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/utils/caption.js
Expand Up @@ -31,6 +31,7 @@ export function Caption( {
tagName = 'figcaption',
addLabel = __( 'Add caption' ),
removeLabel = __( 'Remove caption' ),
icon = captionIcon,
...props
} ) {
const caption = attributes[ attributeKey ];
Expand Down Expand Up @@ -75,7 +76,7 @@ export function Caption( {
} );
}
} }
icon={ captionIcon }
icon={ icon }
isPressed={ showCaption }
label={ showCaption ? removeLabel : addLabel }
/>
Expand Down

0 comments on commit 5dfe5c6

Please sign in to comment.