Skip to content

Commit 37b5be2

Browse files
committed
updating forms docs
1 parent 3442452 commit 37b5be2

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ We're currently working on patch fixes for various parts of Foundation. We'll ad
1717
* Added variable for progress bar background color
1818
* Fixed inconsistency between side margins on unordered and ordered lists
1919
* Made it so you can set `custom_back_text` variable in top-bar to control if the back link is generic or specific
20+
* Updated visibility classes to work properly with table display properties
2021

2122
You can compare the commits [here](https://github.com/zurb/foundation/compare/v4.0.4...master).
2223

docs/components/custom-forms.html.erb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
<form class="custom">
1818
<div class="row">
1919
<div class="large-4 columns">
20-
<label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;"><span class="custom radio"></span> Radio Button 1</label>
21-
<label for="radio2"><input name="radio1" type="radio" id="radio2" style="display:none;"><span class="custom radio checked"></span> Radio Button 2</label>
22-
<label for="radio3"><input name="radio1" type="radio" id="radio3" disabled style="display:none;"><span class="custom radio"></span> Radio Button 3</label>
20+
<label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;" CHECKED><span class="custom radio checked"></span> Radio Button 1</label>
21+
<label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;"><span class="custom radio"></span> Radio Button 2</label>
22+
<label for="radio1"><input name="radio1" type="radio" id="radio1" disabled style="display:none;"><span class="custom radio"></span> Radio Button 3</label>
2323
</div>
2424
<div class="large-4 columns">
2525
<label for="checkbox1"><input type="checkbox" id="checkbox1" style="display: none;"><span class="custom checkbox"></span> Label for Checkbox</label>
26-
<label for="checkbox2"><input type="checkbox" id="checkbox2" checked style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
27-
<label for="checkbox3"><input type="checkbox" CHECKED id="checkbox3"> Label for Checkbox</label>
26+
<label for="checkbox2"><input type="checkbox" id="checkbox2" CHECKED style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
27+
<label for="checkbox3"><input type="checkbox" CHECKED id="checkbox3" style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
2828
</div>
2929
<div class="large-4 columns">
3030
<label for="customDropdown1">Medium Example</label>
@@ -46,18 +46,18 @@
4646
<form class="custom">
4747
<div class="row">
4848
<div class="large-4 columns">
49-
<label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;"><span class="custom radio"></span> Radio Button 1</label>
50-
<label for="radio2"><input name="radio1" type="radio" id="radio2" style="display:none;"><span class="custom radio checked"></span> Radio Button 2</label>
51-
<label for="radio3"><input name="radio1" type="radio" id="radio3" disabled style="display:none;"><span class="custom radio"></span> Radio Button 3</label>
49+
<label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;" CHECKED><span class="custom radio checked"></span> Radio Button 1</label>
50+
<label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;"><span class="custom radio"></span> Radio Button 2</label>
51+
<label for="radio1"><input name="radio1" type="radio" id="radio1" disabled style="display:none;"><span class="custom radio"></span> Radio Button 3</label>
5252
</div>
5353
<div class="large-4 columns">
5454
<label for="checkbox1"><input type="checkbox" id="checkbox1" style="display: none;"><span class="custom checkbox"></span> Label for Checkbox</label>
55-
<label for="checkbox2"><input type="checkbox" id="checkbox2" checked style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
56-
<label for="checkbox3"><input type="checkbox" CHECKED id="checkbox3"> Label for Checkbox</label>
55+
<label for="checkbox2"><input type="checkbox" id="checkbox2" CHECKED style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
56+
<label for="checkbox3"><input type="checkbox" CHECKED id="checkbox3" style="display: none;"><span class="custom checkbox checked"></span> Label for Checkbox</label>
5757
</div>
5858
<div class="large-4 columns">
59-
<label for="customDropdown">Medium Example</label>
60-
<select id="customDropdown" class="medium">
59+
<label for="customDropdown1">Medium Example</label>
60+
<select id="customDropdown1" class="medium">
6161
<option DISABLED>This is a dropdown</option>
6262
<option>This is another option</option>
6363
<option>This is another option too</option>

scss/foundation/components/_custom-forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ $custom-dropdown-width-large: 434px !default;
4545

4646
/* Custom Checkbox and Radio Inputs */
4747
form.custom {
48+
4849
.custom {
4950
display: inline-block;
5051
width: 16px;
@@ -57,7 +58,6 @@ form.custom {
5758
&.radio { @include radius(1000px); }
5859

5960
&.checkbox {
60-
z-index: -1;
6161
&:before {
6262
content: "";
6363
display: block;

0 commit comments

Comments
 (0)