fix issue with dropdowns key accessibility

This commit is contained in:
Giuseppe Digilio
2021-07-08 18:10:43 +02:00
parent 186e420db5
commit ab73bf87b0
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
<li class="nav-item dropdown"
(keyup.enter)="activateSection($event)"
(mouseenter)="activateSection($event)"
(mouseleave)="deactivateSection($event)">
<a href="#" class="nav-link dropdown-toggle" routerLinkActive="active"

View File

@@ -7,7 +7,7 @@
<i class="fas fa-globe-asia fa-lg fa-fw"></i>
</a>
<ul ngbDropdownMenu class="dropdown-menu" [attr.aria-label]="'nav.language' |translate">
<li class="dropdown-item" #langSelect *ngFor="let lang of translate.getLangs()"
<li class="dropdown-item" tabindex="0" #langSelect *ngFor="let lang of translate.getLangs()"
(click)="useLang(lang)"
[class.active]="lang === translate.currentLang">
{{ langLabel(lang) }}