mirror of
https://github.com/picocss/pico.git
synced 2025-04-22 09:26:14 -04:00
docs: update form examples for disabled fields (radio, checkbox, switch)
This commit is contained in:
parent
2565a68ab5
commit
83772dd3b1
1 changed files with 27 additions and 2 deletions
|
@ -114,18 +114,30 @@
|
||||||
<input type="radio" id="large" name="size" value="large">
|
<input type="radio" id="large" name="size" value="large">
|
||||||
Large
|
Large
|
||||||
</label>
|
</label>
|
||||||
|
<label for="extralarge">
|
||||||
|
<input type="radio" id="extralarge" name="size" value="extralarge" disabled>
|
||||||
|
Extra Large
|
||||||
|
</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label for="terms">
|
<label for="terms">
|
||||||
<input type="checkbox" id="terms" name="terms">
|
<input type="checkbox" id="terms" name="terms">
|
||||||
I agree to the Terms and Conditions
|
I agree to the Terms and Conditions
|
||||||
</label>
|
</label>
|
||||||
|
<label for="terms_sharing">
|
||||||
|
<input type="checkbox" id="terms_sharing" name="terms_sharing" disabled checked>
|
||||||
|
I agree to share my information with partners
|
||||||
|
</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label for="switch">
|
<label for="switch">
|
||||||
<input type="checkbox" id="switch" name="switch" role="switch">
|
<input type="checkbox" id="switch" name="switch" role="switch">
|
||||||
Publish on my profile
|
Publish on my profile
|
||||||
</label>
|
</label>
|
||||||
|
<label for="switch_disabled">
|
||||||
|
<input type="checkbox" id="switch_disabled" name="switch_disabled" role="switch" disabled checked>
|
||||||
|
Publish on my profile my accomplishments
|
||||||
|
</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<footer class="code">
|
<footer class="code">
|
||||||
|
|
||||||
|
@ -151,22 +163,35 @@
|
||||||
<<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"large"</u> <i>name</i>=<u>"size"</u> <i>value</i>=<u>"large"</u>>
|
<<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"large"</u> <i>name</i>=<u>"size"</u> <i>value</i>=<u>"large"</u>>
|
||||||
Large
|
Large
|
||||||
</<b>label</b>>
|
</<b>label</b>>
|
||||||
|
</<b>label</b>>
|
||||||
|
<<b>label</b> <i>for</i>=<u>"extralarge"</u>>
|
||||||
|
<<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"extralarge"</u> <i>name</i>=<u>"size"</u> <i>value</i>=<u>"extralarge"</u> <i>disabled</i>>
|
||||||
|
Extra Large
|
||||||
|
</<b>label</b>>
|
||||||
</<b>fieldset</b>>
|
</<b>fieldset</b>>
|
||||||
|
|
||||||
<em><!-- Checkbox --></em>
|
<em><!-- Checkbox(es) --></em>
|
||||||
<<b>fieldset</b>>
|
<<b>fieldset</b>>
|
||||||
<<b>label</b> <i>for</i>=<u>"terms"</u>>
|
<<b>label</b> <i>for</i>=<u>"terms"</u>>
|
||||||
<<b>input</b> <i>type</i>=<u>"checkbox"</u> <i>id</i>=<u>"terms"</u> <i>name</i>=<u>"terms"</u>>
|
<<b>input</b> <i>type</i>=<u>"checkbox"</u> <i>id</i>=<u>"terms"</u> <i>name</i>=<u>"terms"</u>>
|
||||||
I agree to the Terms and Conditions
|
I agree to the Terms and Conditions
|
||||||
</<b>label</b>>
|
</<b>label</b>>
|
||||||
|
<<b>label</b> <i>for</i>=<u>"terms_sharing"</u>>
|
||||||
|
<<b>input</b> <i>type</i>=<u>"checkbox"</u> <i>id</i>=<u>"terms_sharing"</u> <i>name</i>=<u>"terms_sharing"</u> <i>disabled checked</i>>
|
||||||
|
I agree to share my information with partners
|
||||||
|
</<b>label</b>>
|
||||||
</<b>fieldset</b>>
|
</<b>fieldset</b>>
|
||||||
|
|
||||||
<em><!-- Switch --></em>
|
<em><!-- Switch(es) --></em>
|
||||||
<<b>fieldset</b>>
|
<<b>fieldset</b>>
|
||||||
<<b>label</b> <i>for</i>=<u>"switch"</u>>
|
<<b>label</b> <i>for</i>=<u>"switch"</u>>
|
||||||
<<b>input</b> <i>type</i>=<u>"checkbox"</u> <i>id</i>=<u>"switch"</u> <i>name</i>=<u>"switch"</u> <i>role</i>=<u>"switch"</u>>
|
<<b>input</b> <i>type</i>=<u>"checkbox"</u> <i>id</i>=<u>"switch"</u> <i>name</i>=<u>"switch"</u> <i>role</i>=<u>"switch"</u>>
|
||||||
Publish on my profile
|
Publish on my profile
|
||||||
</<b>label</b>>
|
</<b>label</b>>
|
||||||
|
<<b>label</b> <i>for</i>=<u>"switch_disabled"</u>>
|
||||||
|
<<b>input</b> <i>type</i>=<u>"checkbox"</u> <i>id</i>=<u>"switch_disabled"</u> <i>name</i>=<u>"switch_disabled"</u> <i>role</i>=<u>"switch_disabled"</u> <i>disabled checked</i>>
|
||||||
|
Publish on my profile my accomplishments
|
||||||
|
</<b>label</b>>
|
||||||
</<b>fieldset</b>></code></pre>
|
</<b>fieldset</b>></code></pre>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue