Repository navigation
feat: clarify label & add help text with link #70451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9a1a576
feat: restore code
coderGtm 95ebc0d
feat: clarify label & add help text with link
coderGtm 7a0e65c
i18n: remove en-US preset from doc link
coderGtm 87d4657
Merge branch 'WordPress:trunk' into trunk
coderGtm 3c8418a
Merge branch 'WordPress:trunk' into fix/link-rel-text
coderGtm df5efda
Merge remote-tracking branch 'upstream/trunk' into trunk
coderGtm 0047bd8
Merge branch 'trunk' into fix/link-rel-text
coderGtm 6288f0e
Merge branch 'WordPress:trunk' into fix/link-rel-text
coderGtm 6d46aee
Merge branch 'fix/link-rel-text' of https://github.com/coderGtm/guten…
coderGtm 9c17788
fix: replace span with react fragment
coderGtm fcf900b
fix: remove unrelated changes
coderGtm 31b697b
Merge remote-tracking branch 'upstream/trunk' into fix/link-rel-text
coderGtm 2b71099
feat: update all 'Link rel' label to 'Link Relation' and add help text
coderGtm 866c08d
Merge remote-tracking branch 'upstream/trunk' into fix/link-rel-text
coderGtm a2bafbd
refactor: update help text for 'Link Relation' to use interpolated el…
coderGtm 83ef20b
fix: standardize label casing for 'Link Relation' to 'Link relation'
coderGtm 2c610ef
refactor: use 'a' as the link placeholder instead of 'linkRel'
coderGtm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -12,6 +12,7 @@ import { | |||||
| ToggleControl, | ||||||
| TextControl, | ||||||
| __experimentalVStack as VStack, | ||||||
| ExternalLink, | ||||||
| } from '@wordpress/components'; | ||||||
| import { | ||||||
| Icon, | ||||||
|
|
@@ -229,9 +230,19 @@ const ImageURLInputUI = ( { | |||||
| <TextControl | ||||||
| __next40pxDefaultSize | ||||||
| __nextHasNoMarginBottom | ||||||
| label={ __( 'Link rel' ) } | ||||||
| label={ __( 'Link Relation' ) } | ||||||
| value={ rel ?? '' } | ||||||
| onChange={ onSetLinkRel } | ||||||
| help={ | ||||||
| <span> | ||||||
|
Mamaduka marked this conversation as resolved.
Resolved
|
||||||
| { __( | ||||||
| 'The Link Relation attribute defines the relationship between a linked resource and the current document.' | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
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 | ||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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