Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
🎨 Checkbox styles in settings (#633)
Browse files Browse the repository at this point in the history
no issue
- wraps the existing `{{one-way-checkbox}}` in general-setting in a `<label>` tag to make the checkbox styles work properly.
  • Loading branch information
aileen authored and kevinansfield committed Apr 11, 2017
1 parent 9081e33 commit 981d77c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions app/templates/settings/general.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,12 @@
<div class="gh-setting-desc">Include the date in your post URLs, eg. <strong>blogurl.com/2017/01/post-title/</strong></div>
</div>
<div class="gh-setting-action">
{{one-way-checkbox isDatedPermalinks type="checkbox" update=(action (mut isDatedPermalinks)) data-test-dated-permalinks-checkbox=true}}
<span class="input-toggle-component"></span>
<div class="for-checkbox">
<label class="checkbox" for="settings-dated-permalinks">
{{one-way-checkbox isDatedPermalinks id="settings-dated-permalinks" type="checkbox" update=(action (mut isDatedPermalinks)) data-test-dated-permalinks-checkbox=true}}
<span class="input-toggle-component"></span>
</label>
</div>
</div>
</div>
<div class="gh-setting">
Expand All @@ -164,8 +168,12 @@
{{/if}}
</div>
<div class="gh-setting-action">
{{one-way-checkbox model.isPrivate type="checkbox" update=(action (mut model.isPrivate)) data-test-private-checkbox=true}}
<span class="input-toggle-component"></span>
<div class="for-checkbox">
<label class="checkbox" for="settings-private">
{{one-way-checkbox model.isPrivate id="settings-private" type="checkbox" update=(action (mut model.isPrivate)) data-test-private-checkbox=true}}
<span class="input-toggle-component"></span>
</label>
</div>
</div>
</div>

Expand Down

0 comments on commit 981d77c

Please sign in to comment.