fix label for assignment,
fix disk icon alt
This commit is contained in:
parent
f4c830f1ca
commit
05679be08c
@ -65,7 +65,7 @@ function addResourceLine (fieldset, iconHref, labelText, inputAttr, unitText=nul
|
|||||||
|
|
||||||
let label = document.createElement("label");
|
let label = document.createElement("label");
|
||||||
label.innerHTML = labelText;
|
label.innerHTML = labelText;
|
||||||
label.for = labelText;
|
label.htmlFor = labelText;
|
||||||
field.append(label);
|
field.append(label);
|
||||||
|
|
||||||
let input = document.createElement("input");
|
let input = document.createElement("input");
|
||||||
@ -87,6 +87,7 @@ function addDiskLine (fieldset, id, iconHref, labelText, valueText) {
|
|||||||
|
|
||||||
let icon = document.createElement("img");
|
let icon = document.createElement("img");
|
||||||
icon.src = iconHref;
|
icon.src = iconHref;
|
||||||
|
icon.alt = labelText;
|
||||||
field.append(icon);
|
field.append(icon);
|
||||||
|
|
||||||
let label = document.createElement("label");
|
let label = document.createElement("label");
|
||||||
|
Loading…
Reference in New Issue
Block a user