b56097337f
* Rename `Product Title` `Content` panel to `Link settings` * Rename toggle `Link to Product Page` to `Make title a link` * Remove help text * Add `rel` and `linkTarget` to the `Product Title` settings * Add `rel` and `linkTarget` to the `Product Title` block * Only add the `target` attribute if the title is rendered as a link * Keep the `nofollow` in rel as it was before * Make `linkTarget` and `rel` optional To not change the html generated for other components also using `ProductName` * Add tests fotr the `Title` component * Improve rel condition * Extract `linkRel` variable * Remove unnecessary undefined * Remove the default value for `linkTarget` Since it is the default behavior of the browsers, we don't need it. * Remove the `nofollow` rel value It was decided to remove it since it's a link to internal pages. See the PR discussion for more context. * Remove the `rel` option It does not have much sense to have it since it's always an internal link. See the PR discussion for more context. * Clean-up `rel` related code |
||
---|---|---|
.. | ||
components | ||
context | ||
hocs | ||
hooks | ||
utils |