Skip to content

Commit

Permalink
fix: Add missing arialabel (#2191)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Palafox <[email protected]>
Co-authored-by: Angel Montenegro <[email protected]>
  • Loading branch information
3 people authored Mar 13, 2024
1 parent de29a88 commit 64e1639
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/app/cdk/info-drop-down/info-drop-down.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,17 @@

<ng-container *ngIf="signInUpdatesV1Togglz">
<div class="row">
<b class="orc-font-body m-b-16">
<b class="orc-font-body m-b-8">
{{ name }}
</b>
<a class="underline" [ngClass]="{ 'm-b-16': show }" (click)="show = !show">
</div>
<div class="row">
<a
class="underline"
[ngClass]="{ 'm-b-16': show }"
(click)="show = !show"
[attr.aria-label]="(!show ? ariaLabelShowDetailsFor : ariaLabelHideDetailsFor) + ' ' + name "
>
<ng-container i18n="@@shared.showDetails" *ngIf="!show"
>Show details</ng-container
>
Expand Down
6 changes: 6 additions & 0 deletions src/app/cdk/info-drop-down/info-drop-down.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ export class InfoDropDownComponent implements OnInit {
@Input() description
@Input() signInUpdatesV1Togglz: boolean
show = false

ariaLabelShowDetailsFor = $localize`:@@shared.showDetailsFor:Show details for`
ariaLabelHideDetailsFor = $localize`:@@shared.hideDetailsFor:Hide details for`



constructor() {}

ngOnInit(): void {}
Expand Down
2 changes: 2 additions & 0 deletions src/locale/properties/shared/shared.en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -633,3 +633,5 @@ shared.educationSortSource=Sort education and qualifications by source
shared.fundingSortSource=Sort funding by source
shared.professionalActivitiesSortSource=Sort professional activities by source
shared.worksSortSource=Sort works by source
shared.showDetailsFor=Show details for
shared.hideDetailsFor=Hide details for
2 changes: 2 additions & 0 deletions src/locale/properties/shared/shared.lr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -656,3 +656,5 @@ shared.educationSortSource=LR
shared.fundingSortSource=LR
shared.professionalActivitiesSortSource=LR
shared.worksSortSource=LR
shared.showDetailsFor=LR
shared.hideDetailsFor=LR
2 changes: 2 additions & 0 deletions src/locale/properties/shared/shared.rl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -652,3 +652,5 @@ shared.educationSortSource=RL
shared.fundingSortSource=RL
shared.professionalActivitiesSortSource=RL
shared.worksSortSource=RL
shared.showDetailsFor=RL
shared.hideDetailsFor=RL
2 changes: 2 additions & 0 deletions src/locale/properties/shared/shared.xx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -652,3 +652,5 @@ shared.educationSortSource=X
shared.fundingSortSource=X
shared.professionalActivitiesSortSource=X
shared.worksSortSource=X
shared.showDetailsFor=X
shared.hideDetailsFor=X

0 comments on commit 64e1639

Please sign in to comment.