-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1298ddd
commit 457b812
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{#if hasBlock}} | ||
{{yield label}} | ||
{{yield this.label}} | ||
{{else}} | ||
{{label}} | ||
{{this.label}} | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<input | ||
class='x-toggle' | ||
type='checkbox' | ||
checked={{toggled}} | ||
disabled={{disabled}} | ||
id={{forId}} | ||
name={{name}} | ||
onchange={{action sendToggle value='target.checked'}} | ||
checked={{this.toggled}} | ||
disabled={{this.disabled}} | ||
id={{this.forId}} | ||
name={{this.name}} | ||
onchange={{action this.sendToggle value='target.checked'}} | ||
> | ||
|
||
<label for={{effectiveForId}}> | ||
<label for={{this.effectiveForId}}> | ||
<div | ||
id='x-toggle-visual-{{forId}}' | ||
id='x-toggle-visual-{{this.forId}}' | ||
role='checkbox' | ||
class='x-toggle-btn {{themeClass}} {{size}}{{if disabled ' x-toggle-disabled'}}' | ||
aria-owns={{forId}} | ||
aria-checked={{toggled}} | ||
data-tg-on={{onLabel}} | ||
data-tg-off={{offLabel}} | ||
class='x-toggle-btn {{this.themeClass}} {{this.size}}{{if this.disabled ' x-toggle-disabled'}}' | ||
aria-owns={{this.forId}} | ||
aria-checked={{this.toggled}} | ||
data-tg-on={{this.onLabel}} | ||
data-tg-off={{this.offLabel}} | ||
> | ||
</div> | ||
</label> |