gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Change link relationship label.

Open Soean opened this issue 5 years ago • 4 comments

The label Link rel is used in the image URL input and in the button block to add link relationship types to the links.

Bildschirmfoto 2020-02-13 um 14 19 16 Bildschirmfoto 2020-02-13 um 14 17 54

I would suggest to change the label to Link relationship, Relation attribute or Relationship attribute. Or should we add a help text? Should we add a link to a help page?

Soean avatar Feb 13 '20 07:02 Soean

I agree this is super confusing, let's get it fixed! Thanks for reporting.

karmatosed avatar Feb 25 '20 16:02 karmatosed

I would suggest to change the label to Link relationship, Relation attribute or Relationship attribute. Or should we add a help text? Should we add a link to a help page?

I like idea of some explanation and saying the full term.

karmatosed avatar Feb 25 '20 16:02 karmatosed

This was also discussed at #29141

There were some great discussions and suggestions there by @SukcesStrony, @jameskoster, and @jarekmorawski.

To recap suggestions:

  1. Move the "Link rel" input to the "Advanced" section as mentioned earlier (Update: This was completed in https://github.com/WordPress/gutenberg/pull/29664)
  2. Add helper text to clarify what the "link rel" is actually for.

Perhaps maybe also hyperlinking "link relation" to https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel in the description text?

skorasaurus avatar Mar 04 '21 20:03 skorasaurus

Hi all I have created a PR to bring this to life! Please have a look and propose your feedback. Also, the help text that I added can be made more clear imo but wasn't aware of anything better atm.

coderGtm avatar Jun 17 '25 13:06 coderGtm

Removing label as looks like we certainly have a direction.

karmatosed avatar Jul 22 '25 19:07 karmatosed

Reposting from the PR.

I think this falls under the "Need Decision" label. I don't have a strong opinion; both labels work for me. Considering it's an advanced setting, users shouldn't just fill it out.

Additionally, the terminology needs to be consistent across the project. The image link control isn't the only place with this field. Examples:

  • https://github.com/search?q=repo%3AWordPress%2Fwordpress-develop+%22%27Link+rel%27%22&type=code
  • https://github.com/search?q=repo%3AWordPress%2Fgutenberg+%22%27Link+rel%27%22&type=code

I would hold off making further changes until there's a final decision.

Mamaduka avatar Jul 23 '25 04:07 Mamaduka