Skip to content

Commit 2848b6b

Browse files
fix: add rel attribute to clickable tile anchor tag (#2997)
Co-authored-by: Akshat Patel <[email protected]>
1 parent f65f4f9 commit 2848b6b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tiles/clickable-tile.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import { Router } from "@angular/router";
3434
(click)="navigate($event)"
3535
[attr.href]="disabled ? null : href"
3636
[attr.target]="target"
37+
[attr.rel]="rel ? rel : null"
3738
[attr.aria-disabled]="disabled">
3839
<ng-content></ng-content>
3940
</a>`
@@ -55,6 +56,11 @@ export class ClickableTile {
5556
*/
5657
@Input() target: string;
5758

59+
/**
60+
* Sets the `rel` attribute on the `cds-clickable-tile` element.
61+
*/
62+
@Input() rel: string;
63+
5864
/**
5965
* Set to `true` to disable the clickable tile.
6066
*/

0 commit comments

Comments
 (0)