Skip to content

Commit

Permalink
docs(switch): update color context demo
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroedin committed May 15, 2024
1 parent 2a92f48 commit a915915
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion elements/rh-switch/demo/color-context.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,44 @@
</rh-switch>
</div>
</fieldset>

<fieldset disabled>
<legend>Disabled</legend>
<div>
<rh-switch id="switch-e" accessible-label="Switch E" aria-describedby="messages-e" checked>
<div id="messages-e">
<span data-state="on">Message when on</span>
<span data-state="off" hidden>Message when off</span>
</div>
</rh-switch>
</div>
<div>
<rh-switch id="switch-f" accessible-label="Switch F" aria-describedby="messages-f" checked show-check-icon>
<div id="messages-f">
<span data-state="on">Message when on</span>
<span data-state="off" hidden>Message when off</span>
</div>
</rh-switch>
</div>
<div>
<label for="switch-g">Switch G</label>
<rh-switch id="switch-g" aria-describedby="messages-g" checked>
<div id="messages-g">
<span data-state="on">Message when on</span>
<span data-state="off" hidden>Message when off</span>
</div>
</rh-switch>
</div>
<div>
<label for="switch-h">Switch H</label>
<rh-switch id="switch-h" aria-describedby="messages-h" checked show-check-icon>
<div id="messages-h">
<span data-state="on">Message when on</span>
<span data-state="off" hidden>Message when off</span>
</div>
</rh-switch>
</div>
</fieldset>
</form>
</rh-context-demo>

Expand Down Expand Up @@ -83,6 +121,5 @@
display: flex;
gap: 1rem;
}

</style>

0 comments on commit a915915

Please sign in to comment.