Skip to content

Commit

Permalink
Bug 1428581 - Make labels of the permission prompt checkboxes clickab…
Browse files Browse the repository at this point in the history
…le. r=johannh

MozReview-Commit-ID: GPPmYqOX3Jb

--HG--
extra : rebase_source : 3ad70ff0a7617f22e815b9fef29719e7e2234e3b
  • Loading branch information
Prathiksha01 committed Jan 9, 2018
1 parent 62febc5 commit fa554e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
7 changes: 1 addition & 6 deletions browser/components/preferences/sitePermissions.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@
margin-inline-end: 5px;
}

#permissionsDisableLabel {
padding-top: 14px;
font-weight: bold;
}

#permissionsDisableDescription {
margin-inline-start: 37px;
margin-inline-start: 32px;
color: #737373;
line-height: 110%;
}
Expand Down
5 changes: 1 addition & 4 deletions browser/components/preferences/sitePermissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ var gSitePermissionsManager = {
permissionsText.firstChild.remove();
permissionsText.appendChild(document.createTextNode(params.introText));

let permissionsDisableLabel = document.getElementById("permissionsDisableLabel");
permissionsDisableLabel.value = params.disablePermissionsLabel;

this._checkbox.setAttribute("label", params.disablePermissionsLabel);
let permissionsDisableDescription = document.getElementById("permissionsDisableDescription");
permissionsDisableDescription.appendChild(document.createTextNode(params.disablePermissionsDescription));

Expand All @@ -72,7 +70,6 @@ var gSitePermissionsManager = {

if (this._currentDefaultPermissionsState === null) {
this._checkbox.setAttribute("hidden", true);
permissionsDisableLabel.setAttribute("hidden", true);
permissionsDisableDescription.setAttribute("hidden", true);
} else if (this._currentDefaultPermissionsState == SitePermissions.BLOCK) {
this._checkbox.checked = true;
Expand Down
9 changes: 2 additions & 7 deletions browser/components/preferences/sitePermissions.xul
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,8 @@
oncommand="gSitePermissionsManager.onAllPermissionsDelete();"/>
</hbox>
<spacer flex="1"/>
<vbox align="start">
<hbox align="start">
<checkbox id="permissionsDisableCheckbox"/>
<label for="permissionsDisableCheckbox" id="permissionsDisableLabel"/>
</hbox>
<description id="permissionsDisableDescription"/>
</vbox>
<checkbox id="permissionsDisableCheckbox"/>
<description id="permissionsDisableDescription"/>
<spacer flex="1"/>
<hbox class="actionButtons" align="right" flex="1">
<button oncommand="close();" icon="close" id="cancel"
Expand Down

0 comments on commit fa554e3

Please sign in to comment.