File tree 2 files changed +5
-1
lines changed
polaris-react/src/components
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ export interface LinkProps {
18
18
* @deprecated use `target` set to `_blank` instead
19
19
*/
20
20
external ?: boolean ;
21
+ /** The relationship of the linked URL as space-separated link types. */
22
+ rel ?: string ;
21
23
/** Where to display the url */
22
24
target ?: Target ;
23
25
/** Makes the link color the same as the current text color and adds an underline */
@@ -37,6 +39,7 @@ export function Link({
37
39
children,
38
40
onClick,
39
41
external,
42
+ rel,
40
43
target,
41
44
id,
42
45
monochrome,
@@ -60,6 +63,7 @@ export function Link({
60
63
onClick = { onClick }
61
64
className = { className }
62
65
url = { url }
66
+ rel = { rel }
63
67
external = { external }
64
68
target = { target }
65
69
id = { id }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export const UnstyledLink = memo(
31
31
target = targetProp ?? undefined ;
32
32
}
33
33
34
- const rel = target === '_blank' ? 'noopener noreferrer' : undefined ;
34
+ const rel = props . ref ?? target === '_blank' ? 'noopener noreferrer' : undefined ;
35
35
36
36
return (
37
37
< a
You can’t perform that action at this time.
0 commit comments