Merge pull request #15099 from Snuffleupagus/layers-rm-id

Remove element `id`s from the layersView in the sidebar
This commit is contained in:
Tim van der Meij 2022-06-25 14:58:18 +02:00 committed by GitHub
commit f93ab76fa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -153,14 +153,13 @@ class PDFLayerViewer extends BaseTreeViewer {
const input = document.createElement("input");
this._bindLink(element, { groupId, input });
input.type = "checkbox";
input.id = groupId;
input.checked = group.visible;
const label = document.createElement("label");
label.setAttribute("for", groupId);
label.textContent = this._normalizeTextContent(group.name);
element.append(input, label);
label.append(input);
element.append(label);
layersCount++;
}

View File

@ -1156,12 +1156,16 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
cursor: pointer;
}
#layersView .treeItem > a > * {
#layersView .treeItem > a * {
cursor: pointer;
}
#layersView .treeItem > a > label {
padding-inline-start: 4px;
}
#layersView .treeItem > a > label > input {
float: inline-start;
margin-top: 1px;
}
.treeItemToggler {
position: relative;