Skip to content

Commit

Permalink
fix: Use proper role, remove invalid aria-role
Browse files Browse the repository at this point in the history
Resolves #106
  • Loading branch information
knownasilya committed Apr 18, 2018
1 parent 0de50ee commit 4270acf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addon/components/x-toggle-switch/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
<label for="{{effectiveForId}}">
<div
aria-owns="{{forId}}"
aria-role="checkbox"
role="checkbox"
aria-checked="{{toggled}}"
class="x-toggle-btn {{themeClass}} {{size}}{{if disabled ' x-toggle-disabled'}}"
data-tg-on="{{onLabel}}"
data-tg-off="{{offLabel}}"
id="x-toggle-visual-{{forId}}">
</div>
</label>
</label>

0 comments on commit 4270acf

Please sign in to comment.