Skip to content

Commit

Permalink
Update MediaUpload button for site logo from "Add media" to "Choose l…
Browse files Browse the repository at this point in the history
…ogo" (#63498)
  • Loading branch information
richtabor authored Jul 25, 2024
1 parent ddbfee3 commit ed4673b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/block-library/src/site-logo/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,6 @@ export default function LogoEdit( {

const blockProps = useBlockProps( { className: classes } );

const label = __( 'Add a site logo' );

const mediaInspectorPanel = ( canUserEdit || logoUrl ) && (
<InspectorControls>
<PanelBody title={ __( 'Media' ) }>
Expand Down Expand Up @@ -631,7 +629,7 @@ export default function LogoEdit( {
{ isLoading ? (
<Spinner />
) : (
__( 'Add media' )
__( 'Choose logo' )
) }
</Button>
<DropZone onFilesDrop={ onFilesDrop } />
Expand Down Expand Up @@ -671,9 +669,9 @@ export default function LogoEdit( {
<Button
icon={ upload }
variant="primary"
label={ label }
label={ __( 'Choose logo' ) }
showTooltip
tooltipPosition="top center"
tooltipPosition="bottom center"
onClick={ () => {
open();
} }
Expand Down

0 comments on commit ed4673b

Please sign in to comment.