Bug 1576943 - Add a label to the about:config radio buttons r=jaws

Differential Revision: https://phabricator.services.mozilla.com/D43632

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Striemer 2019-08-28 14:21:14 +00:00
Родитель 24c8d32c36
Коммит 5ea7438e89
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -247,9 +247,11 @@ class PrefRow {
radio.type = "radio";
radio.name = "type";
radio.value = type;
radio.id = `add-type-${type}`;
radio.checked = this.type == type;
form.appendChild(radio);
let radioLabel = document.createElement("span");
let radioLabel = document.createElement("label");
radioLabel.setAttribute("for", radio.id);
document.l10n.setAttributes(radioLabel, STRINGS_ADD_BY_TYPE[type]);
form.appendChild(radioLabel);
}