Skip to content

Commit

Permalink
Fix labeling of the RSS block placeholder.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed May 10, 2024
1 parent f69bd7a commit 710347c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/block-library/src/rss/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,27 @@ export default function RSSEdit( { attributes, setAttributes } ) {

const blockProps = useBlockProps();

const label = __( 'RSS URL' );

if ( isEditing ) {
return (
<div { ...blockProps }>
<Placeholder icon={ rss } label="RSS">
<Placeholder
icon={ rss }
label={ label }
instructions={ __(
'Display entries from any RSS or Atom feed.'
) }
>
<form
onSubmit={ onSubmitURL }
className="wp-block-rss__placeholder-form"
>
<HStack wrap>
<InputControl
__next40pxDefaultSize
label={ label }
hideLabelFromVision
placeholder={ __( 'Enter URL here…' ) }
value={ feedURL }
onChange={ ( value ) =>
Expand All @@ -82,7 +92,7 @@ export default function RSSEdit( { attributes, setAttributes } ) {
variant="primary"
type="submit"
>
{ __( 'Use URL' ) }
{ __( 'Apply' ) }
</Button>
</HStack>
</form>
Expand Down

0 comments on commit 710347c

Please sign in to comment.