Skip to content

Commit 01e710a

Browse files
committed
fix(accessibility): fixed accessibility issues
1 parent cd80a78 commit 01e710a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/app/features/project/overview/components/component-card/component-card.component.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
<h2 class="flex align-items-center gap-2">
44
<osf-icon [iconClass]="component().isPublic ? 'fas fa-lock-open' : 'fas fa-lock'"></osf-icon>
55

6-
<a class="node-title cursor-pointer" (click)="handleNavigate(component().id)">
6+
<a
7+
class="node-title cursor-pointer"
8+
role="button"
9+
tabindex="0"
10+
(click)="handleNavigate(component().id)"
11+
(keydown.enter)="handleNavigate(component().id)"
12+
>
713
{{ component().title }}
814
</a>
915
</h2>
@@ -24,6 +30,7 @@ <h2 class="flex align-items-center gap-2">
2430
<ng-template #item let-item>
2531
<a
2632
class="p-menu-item-link"
33+
tabindex="0"
2734
(mousedown)="handleMenuAction(item.action)"
2835
(keydown.enter)="handleMenuAction(item.action)"
2936
>

0 commit comments

Comments
 (0)