Skip to content

Commit

Permalink
fix: checkbox for panel_headerActiveToggleTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Sep 19, 2018
1 parent 9c823b8 commit 602769e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions add-on/src/options/forms/global-toggle-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const browser = require('webextension-polyfill')
const html = require('choo/html')

function globalToggleForm ({ active, onOptionChange }) {
const toggle = onOptionChange('active')
const toggle = onOptionChange('active', checked => !checked)
return html`
<form class="dib mb3">
<label for="active" class="dib pa3 pointer ${!active ? 'bg-aqua-muted br2' : ''}">
<input class="mr2 pointer" id="active" type="checkbox" onchange=${toggle} checked=${active} />
<label for="active" class="dib pa3 pointer ${!active ? 'charcoal bg-gray-muted br2' : ''}">
<input class="mr2 pointer" id="active" type="checkbox" onchange=${toggle} checked=${!active} />
${browser.i18n.getMessage('panel_headerActiveToggleTitle')}
</label>
</form>
Expand Down

0 comments on commit 602769e

Please sign in to comment.