Skip to content

Commit

Permalink
Correct accessibility of language selector
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Oct 23, 2024
1 parent aaf43b5 commit 04266a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@if (appDataService.public.node.languages_enabled.length > 1) {
<div id="LanguagePickerBox" class="order-2" [ngClass]="appDataService.public.node.wizard_done ? 'language-box' : 'language-box-extended'">
<label for="language-picker-select" class="visually-hidden">{{'Select your language' | translate}}</label>
<ng-select id="language-picker-select" [clearable]="false" (change)="onChangeLanguage();" [(ngModel)]="translationService.language">
<ng-select labelForId="language-picker-select" [clearable]="false" (change)="onChangeLanguage();" [(ngModel)]="translationService.language">
@for (lang of appDataService.languages_enabled_selector | orderBy: 'native'; track lang) {
<ng-option [value]="lang.code">
<span [attr.data-cy]="lang.code">{{lang.native}}</span>
Expand Down

0 comments on commit 04266a3

Please sign in to comment.