Skip to content
Snippets Groups Projects
Commit 21c194ab authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

Merge branch '593-fix-duplicate-ids' into 'dev'

fix(accessibility): no duplicate ids for form fields

See merge request !887
parents ab069c58 ad2a7c73
No related branches found
No related tags found
2 merge requests!907V3.2.0,!887fix(accessibility): no duplicate ids for form fields
......@@ -5,6 +5,7 @@
size="large"
[placeholder]="'exemple : ' + name.toLowerCase()"
[label]="name"
[id]="'select-' + name.toLowerCase()"
[wide]="true"
[disabled]="isAddingNewItem"
[status]="!isAddingNewItem ? (isSelectedItem ? 'success' : 'error') : null"
......@@ -39,6 +40,7 @@
<app-input
autocomplete="off"
size="large"
[id]="'create-' + name.toLowerCase()"
[label]="'Nom de ' + (isFeminineWord ? 'la ' : 'l\'') + (name | lowercase)"
[placeholder]="'exemple : ' + name.toLowerCase()"
[description]="'Renseignez le nom de votre ' + name.toLowerCase()"
......
<div class="inputContainer" [ngClass]="{ disabled: disabled }">
<label [htmlFor]="id" [ngClass]="status">{{ label }}</label>
<label [htmlFor]="'textarea-' + id" [ngClass]="status">{{ label }}</label>
<span *ngIf="description" class="description" [ngClass]="{ disabled: disabled }">{{ description }}</span>
<textarea
rows="8"
[value]="value"
[maxLength]="maxLength"
[id]="id"
[id]="'textarea-' + id"
[disabled]="disabled"
[ngClass]="status"
[placeholder]="placeholder"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment