mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 18:44:14 +00:00
fix issue with dropdowns key accessibility
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<li class="nav-item dropdown"
|
<li class="nav-item dropdown"
|
||||||
|
(keyup.enter)="activateSection($event)"
|
||||||
(mouseenter)="activateSection($event)"
|
(mouseenter)="activateSection($event)"
|
||||||
(mouseleave)="deactivateSection($event)">
|
(mouseleave)="deactivateSection($event)">
|
||||||
<a href="#" class="nav-link dropdown-toggle" routerLinkActive="active"
|
<a href="#" class="nav-link dropdown-toggle" routerLinkActive="active"
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<i class="fas fa-globe-asia fa-lg fa-fw"></i>
|
<i class="fas fa-globe-asia fa-lg fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
<ul ngbDropdownMenu class="dropdown-menu" [attr.aria-label]="'nav.language' |translate">
|
<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)"
|
(click)="useLang(lang)"
|
||||||
[class.active]="lang === translate.currentLang">
|
[class.active]="lang === translate.currentLang">
|
||||||
{{ langLabel(lang) }}
|
{{ langLabel(lang) }}
|
||||||
|
Reference in New Issue
Block a user