Skip to content
Merged
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
ToggleControl,
TextControl,
__experimentalVStack as VStack,
ExternalLink,
} from '@wordpress/components';
import {
Icon,
Expand Down Expand Up @@ -229,9 +230,19 @@ const ImageURLInputUI = ( {
<TextControl
__next40pxDefaultSize
__nextHasNoMarginBottom
label={ __( 'Link rel' ) }
label={ __( 'Link Relation' ) }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
label={ __( 'Link Relation' ) }
label={ __( 'Link relation' ) }

I think similar labels use sentence case. See: https://github.com/WordPress/gutenberg/blob/trunk/docs/contributors/documentation/copy-guide.md#five-pay-attention-to-capitalization

value={ rel ?? '' }
onChange={ onSetLinkRel }
help={
<span>
Comment thread
Mamaduka marked this conversation as resolved.
Resolved
{ __(
'The Link Relation attribute defines the relationship between a linked resource and the current document.'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'The Link Relation attribute defines the relationship between a linked resource and the current document.'
'The link relation attribute defines the relationship between a linked resource and the current document.'

I think we should use standard casing here. This matches casing in the MDN article.

Note: Label and text changes should be the same everywhere.

) }{ ' ' }
<ExternalLink href="https://developer.mozilla.org/docs/Web/HTML/Attributes/rel">
{ __( 'Learn more.' ) }
</ExternalLink>
</span>
}
/>
<TextControl
__next40pxDefaultSize
Expand Down