1
0

Fixed accessibility issues on BitstreamFormatsComponent

- Removed empty label of the select box and replaced it with an aria-label
- Fixed empty table header
This commit is contained in:
Alexandre Vryghem
2023-12-16 03:34:28 +01:00
committed by Tim Donohue
parent 5173ac3704
commit 949e55235a
2 changed files with 7 additions and 2 deletions

View File

@@ -19,7 +19,7 @@
<table id="formats" class="table table-striped table-hover">
<thead>
<tr>
<th scope="col" [attr.aria-label]="'admin.registries.bitstream-formats.select' | translate"></th>
<th scope="col"><span class="sr-only">{{'admin.registries.bitstream-formats.table.selected' | translate}}</span></th>
<th scope="col">{{'admin.registries.bitstream-formats.table.id' | translate}}</th>
<th scope="col">{{'admin.registries.bitstream-formats.table.name' | translate}}</th>
<th scope="col">{{'admin.registries.bitstream-formats.table.mimetype' | translate}}</th>
@@ -35,6 +35,7 @@
[checked]="isSelected(bitstreamFormat) | async"
(change)="selectBitStreamFormat(bitstreamFormat, $event)"
>
<span class="sr-only">{{'admin.registries.bitstream-formats.select' | translate}}}</span>
</label>
</td>
<td><a [routerLink]="['/admin/registries/bitstream-formats', bitstreamFormat.id, 'edit']">{{bitstreamFormat.id}}</a></td>

View File

@@ -128,6 +128,8 @@
"admin.registries.bitstream-formats.table.name": "Name",
"admin.registries.bitstream-formats.table.selected": "Selected bitstream formats",
"admin.registries.bitstream-formats.table.id": "ID",
"admin.registries.bitstream-formats.table.return": "Back",
@@ -142,7 +144,9 @@
"admin.registries.bitstream-formats.title": "Bitstream Format Registry",
"admin.registries.bitstream-formats.select": "Select bitstream format",
"admin.registries.bitstream-formats.select": "Select",
"admin.registries.bitstream-formats.deselect": "Deselect",
"admin.registries.metadata.breadcrumbs": "Metadata registry",