Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions switch.lit.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<form>
<mk-switch></mk-switch>
<mk-switch name="two" checked="true" style="--switch-active: hsl(138, 48%, 48%)"></mk-switch>
<mk-switch name="three" style="--switch-active: hsl(205, 48%, 48%)">
<input type="submit" value="sumbit">
</form>
<script src="./switch.lit.js" type="module"></script>
Expand Down
2 changes: 1 addition & 1 deletion switch.lit.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Switch extends LitElement {
return html`
<label class="switch" role="tab">
<input type="checkbox" name="${this.name}" id="nub" ?checked=${this.checked}>
<span class="nub"></span>
<div class="nub"></div>
<div class="switchbg"></div>
</label>
<link rel="stylesheet" href="https://switch.fallproject.org/switch.css">
Expand Down