Skip to content

Commit

Permalink
fix: Fix checkbox behavior in zen-settings.js and update styles in ze…
Browse files Browse the repository at this point in the history
…n-preferences.css
  • Loading branch information
mauro-balades committed Aug 17, 2024
1 parent 02fe8a0 commit a8980ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/browser/components/preferences/zen-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ var gZenMarketplaceManager = {
fragment.querySelector(".zenThemeMarketplaceItemPreferenceCheckbox").setAttribute("checked", "true");
}
fragment.querySelector(".zenThemeMarketplaceItemPreferenceCheckbox").addEventListener("click", (event) => {
let target = event.target;
let target = event.target.closest(".zenThemeMarketplaceItemPreferenceCheckbox");
let key = target.getAttribute("zen-pref");
let checked = target.hasAttribute("checked");
if (checked) {
if (!checked) {
target.removeAttribute("checked");
} else {
target.setAttribute("checked", "true");
Expand Down
2 changes: 1 addition & 1 deletion src/browser/themes/shared/preferences/zen-preferences.css
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ groupbox h2 {
.zenThemeMarketplaceItem {
width: 100%;

&:not(:first-of-type) {
&:not(:first-of-type), .zenThemeMarketplaceItemPreferences {
margin-top: 15px;
}
}
Expand Down

0 comments on commit a8980ae

Please sign in to comment.