forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(toggle): add experimental toggle (carbon-design-system#1267)
* feat(toggle): add experimental toggle styles * chore: toggle style updates * chore: update border radius
- Loading branch information
1 parent
f45f08d
commit 1fe1a06
Showing
4 changed files
with
191 additions
and
4 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
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
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,21 +1,25 @@ | ||
<div class="bx--form-item"> | ||
<input class="bx--toggle bx--toggle--small" id="toggle4" type="checkbox" aria-label="Label Name"> | ||
<label class="bx--toggle__label" for="toggle4"> | ||
<span class="bx--toggle__text--left">Off</span> | ||
<span class="bx--toggle__appearance"> | ||
<svg class="bx--toggle__check" width="6px" height="5px" viewBox="0 0 6 5"> | ||
<path d="M2.2 2.7L5 0 6 1 2.2 5 0 2.7 1 1.5z"/> | ||
</svg> | ||
</span> | ||
<span class="bx--toggle__text--right">On</span> | ||
</label> | ||
</div> | ||
|
||
<div class="bx--form-item"> | ||
<input class="bx--toggle bx--toggle--small" id="toggle5" type="checkbox" aria-label="Label Name" disabled> | ||
<label class="bx--toggle__label" for="toggle5"> | ||
<span class="bx--toggle__text--left">Off</span> | ||
<span class="bx--toggle__appearance"> | ||
<svg class="bx--toggle__check" width="6px" height="5px" viewBox="0 0 6 5"> | ||
<path d="M2.2 2.7L5 0 6 1 2.2 5 0 2.7 1 1.5z"/> | ||
</svg> | ||
</span> | ||
<span class="bx--toggle__text--right">On</span> | ||
</label> | ||
</div> |
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