Fixed accessibility issues on AccessControlFormContainerComponent

- Replaced invisible label in AccessControlArrayFormComponent that was only used for styling with span
- Fixed radio buttons not being part of a fieldset
- Fixed empty table header
This commit is contained in:
Alexandre Vryghem
2023-12-16 04:44:22 +01:00
committed by Tim Donohue
parent 949e55235a
commit 8b5cd79bdc
5 changed files with 20 additions and 16 deletions

View File

@@ -88,7 +88,7 @@
</div>
<div>
<label>&nbsp;</label>
<span aria-hidden="true" class="mb-2 d-inline-block">&nbsp;</span>
<div class="input-group">
<button type="button" class="btn btn-outline-danger"

View File

@@ -23,10 +23,10 @@
</ui-switch>
</div>
<div class="row mt-3">
<div class="col-12 col-md-3">
<fieldset class="row mt-3">
<legend class="h4 col-12 col-md-3">
{{ 'access-control-mode' | translate }}
</div>
</legend>
<div class="col-12 col-md-8">
<div class="form-check">
<input class="form-check-input" type="radio"
@@ -47,7 +47,7 @@
</label>
</div>
</div>
</div>
</fieldset>
</div>
<div>
@@ -78,10 +78,10 @@
</div>
<div *ngIf="showLimitToSpecificBitstreams" class="row mt-3">
<div class="col-12">
<fieldset class="col-12">
<legend class="h4">
{{'access-control-limit-to-specific' | translate}}
</div>
<div class="col-12">
</legend>
<div class="form-check">
<input class="form-check-input" type="radio"
name="changesLimit" id="processAll" value="all"
@@ -111,14 +111,14 @@
</label>
</div>
</div>
</fieldset>
</div>
</div>
<div class="row mt-3">
<div class="col-12 col-md-3">
<fieldset class="row mt-3">
<legend class="h4 col-12 col-md-3">
{{'access-control-mode' | translate}}
</div>
</legend>
<div class="col-12 col-md-8">
<div class="form-check">
<input class="form-check-input" type="radio"
@@ -139,7 +139,7 @@
</label>
</div>
</div>
</div>
</fieldset>
<div>
<h3 class="h4 mt-3">{{'access-control-access-conditions' | translate}}</h3>

View File

@@ -11,7 +11,7 @@
<table id="collection-select" class="table table-striped table-hover">
<thead>
<tr>
<th aria-hidden="true"></th>
<th><span class="sr-only">{{'collection.select.table.selected' | translate}}</span></th>
<th scope="col">{{'collection.select.table.title' | translate}}</th>
</tr>
</thead>

View File

@@ -11,7 +11,7 @@
<table id="item-select" class="table table-striped table-hover">
<thead>
<tr>
<th aria-hidden="true"></th>
<th><span class="sr-only">{{'item.select.table.selected' | translate}}</span></th>
<th *ngIf="!hideCollection" scope="col">{{'item.select.table.collection' | translate}}</th>
<th scope="col">{{'item.select.table.author' | translate}}</th>
<th scope="col">{{'item.select.table.title' | translate}}</th>

View File

@@ -1110,6 +1110,8 @@
"collection.select.empty": "No collections to show",
"collection.select.table.selected": "Selected collections",
"collection.select.table.select": "Select collection",
"collection.select.table.deselect": "Deselect collection",
@@ -2544,6 +2546,8 @@
"item.select.empty": "No items to show",
"item.select.table.selected": "Selected items",
"item.select.table.select": "Select item",
"item.select.table.deselect": "Deselect item",