Skip to content

Commit

Permalink
Fix mobile form field spacing #3913
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed May 15, 2016
1 parent 8b94e93 commit d8bdcaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
- **Dropdown** - Long dropdown text entry with `allowAdditions` would cause input to mistakingly drop to next line early #3743
- **Dropdown** - Seach selection would lose search input focus when clicking on a choice #3790
- **Embed** - `API` setting is now disabled by default
- **Form** - Fix `equal width fields` sometimes not including right field spacing on mobile #3913
- **Form** - Grouped `fields` and `field` would cause different margin collapse, making `fields` include larger gaps between content #3717
- **Form** - Fixed issue where `inline` field was not being correctly inverted in color with `inverted form` #4004 #4005 **Thanks @tbracken**
- **Form** - Remove deprecated `size()` method in `prompt` #3655 **Thanks @SimonArdrey**
Expand Down
8 changes: 7 additions & 1 deletion src/definitions/collections/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,9 @@
.ui.form .fields {
flex-wrap: wrap;
}

.ui[class*="equal width"].form .fields > .field,
.ui.form [class*="equal width"].fields > .field,
.ui.form .two.fields > .fields,
.ui.form .two.fields > .field,
.ui.form .three.fields > .fields,
Expand All @@ -828,7 +831,7 @@
.ui.form .ten.fields > .fields,
.ui.form .ten.fields > .field {
width: @oneColumn !important;
margin: @fieldsMargin;
margin: 0em 0em @rowDistance;
}
}

Expand Down Expand Up @@ -916,6 +919,9 @@
.ui.form .fields > .sixteen.wide.field {
width: @oneColumn !important;
}
.ui.form .fields {
margin-bottom: 0em;
}
}

/*--------------------
Expand Down

0 comments on commit d8bdcaf

Please sign in to comment.