mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
fix issue with missing aria label
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<div class="col-4 d-inline-block">
|
<div class="col-4 d-inline-block">
|
||||||
<div *ngIf="logo" class="btn-group btn-group-sm float-right" role="group">
|
<div *ngIf="logo" class="btn-group btn-group-sm float-right" role="group">
|
||||||
<button *ngIf="!markLogoForDeletion" type="button" class="btn btn-danger"
|
<button *ngIf="!markLogoForDeletion" type="button" class="btn btn-danger"
|
||||||
[attr.aria-label]="(type.value + 'edit.logo.delete.title' | translate)"
|
[attr.aria-label]="(type.value + '.edit.logo.delete.title' | translate)"
|
||||||
title="{{type.value + '.edit.logo.delete.title' | translate}}"
|
title="{{type.value + '.edit.logo.delete.title' | translate}}"
|
||||||
(click)="deleteLogo()">
|
(click)="deleteLogo()">
|
||||||
<i class="fas fa-trash" aria-hidden="true"></i>
|
<i class="fas fa-trash" aria-hidden="true"></i>
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
<i ngbDropdownToggle class="far fa-caret-down position-absolute scrollable-dropdown-toggle"
|
<i ngbDropdownToggle class="far fa-caret-down position-absolute scrollable-dropdown-toggle"
|
||||||
aria-hidden="true"></i>
|
aria-hidden="true"></i>
|
||||||
<input class="form-control"
|
<input class="form-control"
|
||||||
[attr.aria-labelledby]="'label_' + model.id"
|
[attr.aria-label]="model.placeholder"
|
||||||
[attr.autoComplete]="model.autoComplete"
|
[attr.autoComplete]="model.autoComplete"
|
||||||
[class.is-invalid]="showErrorMessages"
|
[class.is-invalid]="showErrorMessages"
|
||||||
[class.scrollable-dropdown-input]="!model.readOnly"
|
[class.scrollable-dropdown-input]="!model.readOnly"
|
||||||
@@ -22,9 +22,9 @@
|
|||||||
class="dropdown-menu scrollable-dropdown-menu w-100"
|
class="dropdown-menu scrollable-dropdown-menu w-100"
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
[attr.aria-labelledby]="'label_' + model.id">
|
[attr.aria-label]="model.placeholder">
|
||||||
<div class="scrollable-menu"
|
<div class="scrollable-menu"
|
||||||
[attr.aria-labelledby]="'label_' + model.id"
|
[attr.aria-label]="model.placeholder"
|
||||||
infiniteScroll
|
infiniteScroll
|
||||||
[infiniteScrollDistance]="2"
|
[infiniteScrollDistance]="2"
|
||||||
[infiniteScrollThrottle]="50"
|
[infiniteScrollThrottle]="50"
|
||||||
|
@@ -17,18 +17,20 @@
|
|||||||
class="col-xs-2 d-flex flex-column justify-content-sm-start align-items-end">
|
class="col-xs-2 d-flex flex-column justify-content-sm-start align-items-end">
|
||||||
<button type="button" class="btn btn-secondary" role="button"
|
<button type="button" class="btn btn-secondary" role="button"
|
||||||
title="{{'form.remove' | translate}}"
|
title="{{'form.remove' | translate}}"
|
||||||
|
attr.aria-label="{{'form.remove' | translate}}"
|
||||||
(click)="removeItem($event, context, index)"
|
(click)="removeItem($event, context, index)"
|
||||||
[disabled]="group.context.groups.length === 1 || isItemReadOnly(context, index)">
|
[disabled]="group.context.groups.length === 1 || isItemReadOnly(context, index)">
|
||||||
<span attr.aria-label="{{'form.remove' | translate}}"><i class="fas fa-trash" aria-hidden="true"></i></span>
|
<span><i class="fas fa-trash" aria-hidden="true"></i></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="(!context.notRepeatable) && index === (group.context.groups.length - 1)" class="clearfix pl-4 w-100">
|
<div *ngIf="(!context.notRepeatable) && index === (group.context.groups.length - 1)" class="clearfix pl-4 w-100">
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="group">
|
||||||
<button type="button" role="button" class="ds-form-add-more btn btn-link"
|
<button type="button" role="button" class="ds-form-add-more btn btn-link"
|
||||||
title="{{'form.add' | translate}}"
|
title="{{'form.add' | translate}}"
|
||||||
|
attr.aria-label="{{'form.add' | translate}}"
|
||||||
[disabled]="isItemReadOnly(context, index)"
|
[disabled]="isItemReadOnly(context, index)"
|
||||||
(click)="insertItem($event, group.context, group.context.groups.length)">
|
(click)="insertItem($event, group.context, group.context.groups.length)">
|
||||||
<span attr.aria-label="{{'form.add' | translate}}"><i class="fas fa-plus"></i> {{'form.add' | translate}}</span>
|
<span><i class="fas fa-plus"></i> {{'form.add' | translate}}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -39,9 +41,10 @@
|
|||||||
<div class="btn-group" role="button">
|
<div class="btn-group" role="button">
|
||||||
<button type="button" class="btn btn-secondary"
|
<button type="button" class="btn btn-secondary"
|
||||||
title="{{'form.discard' | translate}}"
|
title="{{'form.discard' | translate}}"
|
||||||
|
attr.aria-label="{{'form.discard' | translate}}"
|
||||||
(click)="removeItem($event, context, index)"
|
(click)="removeItem($event, context, index)"
|
||||||
[disabled]="group.context.groups.length === 1 || isItemReadOnly(context, index)">
|
[disabled]="group.context.groups.length === 1 || isItemReadOnly(context, index)">
|
||||||
<span attr.aria-label="{{'form.discard' | translate}}">{{'form.discard' | translate}}</span>
|
<span>{{'form.discard' | translate}}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
<h5 id="configuration-switch">{{ 'search.switch-configuration.title' | translate}}</h5>
|
<h5 id="configuration-switch">{{ 'search.switch-configuration.title' | translate}}</h5>
|
||||||
|
|
||||||
<select class="form-control"
|
<select class="form-control"
|
||||||
attr.aria-labelledby="configuration-switch"
|
aria-labelledby="configuration-switch"
|
||||||
[compareWith]="compare"
|
[compareWith]="compare"
|
||||||
[(ngModel)]="selectedOption"
|
[(ngModel)]="selectedOption"
|
||||||
(change)="onSelect()">
|
(change)="onSelect()">
|
||||||
|
@@ -22,12 +22,11 @@
|
|||||||
aria-hidden="true" title="{{'submission.sections.status.valid.title' | translate}}"></i>
|
aria-hidden="true" title="{{'submission.sections.status.valid.title' | translate}}"></i>
|
||||||
<a class="close"
|
<a class="close"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
|
role="button"
|
||||||
[attr.aria-label]="(sectionRef.isOpen() ? 'submission.sections.toggle.close' : 'submission.sections.toggle.open') | translate"
|
[attr.aria-label]="(sectionRef.isOpen() ? 'submission.sections.toggle.close' : 'submission.sections.toggle.open') | translate"
|
||||||
[title]="(sectionRef.isOpen() ? 'submission.sections.toggle.close' : 'submission.sections.toggle.open') | translate">
|
[title]="(sectionRef.isOpen() ? 'submission.sections.toggle.close' : 'submission.sections.toggle.open') | translate">
|
||||||
<span *ngIf="sectionRef.isOpen()" class="fas fa-chevron-up fa-fw"
|
<span *ngIf="sectionRef.isOpen()" class="fas fa-chevron-up fa-fw"></span>
|
||||||
aria-hidden="true"></span>
|
<span *ngIf="!sectionRef.isOpen()" class="fas fa-chevron-down fa-fw"></span>
|
||||||
<span *ngIf="!sectionRef.isOpen()" class="fas fa-chevron-down fa-fw"
|
|
||||||
aria-hidden="true"></span>
|
|
||||||
</a>
|
</a>
|
||||||
<a href="#" class="close mr-3" *ngIf="!sectionRef.isMandatory()"
|
<a href="#" class="close mr-3" *ngIf="!sectionRef.isMandatory()"
|
||||||
(click)="removeSection($event)">
|
(click)="removeSection($event)">
|
||||||
|
Reference in New Issue
Block a user