Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One-wide form fields do not stack properly #7155

Open
likuilin opened this issue Feb 15, 2025 · 0 comments
Open

One-wide form fields do not stack properly #7155

likuilin opened this issue Feb 15, 2025 · 0 comments

Comments

@likuilin
Copy link

Forms with one-wide fields do not stack properly:

<form class="ui form">
  <div class="fields">
    <div class="one wide field">
      <label>one wide</label>
      <input type="text" value="one wide" />
    </div>
    <div class="two wide field">
      <label>two wide</label>
      <input type="text" value="two wide" />
    </div>
    <div class="three wide field">
      <label>three wide</label>
      <input type="text" value="three wide" />
    </div>
  </div>
</form>

This is because this CSS is missing the one-wide case:

/* Swap to full width on mobile */
@media only screen and (max-width : @largestMobileScreen) {
.ui.form:not(.unstackable) .two.fields:not(.unstackable) > .fields,
.ui.form:not(.unstackable) .two.fields:not(.unstackable) > .field,
.ui.form:not(.unstackable) .three.fields:not(.unstackable) > .fields,
.ui.form:not(.unstackable) .three.fields:not(.unstackable) > .field,
.ui.form:not(.unstackable) .four.fields:not(.unstackable) > .fields,
.ui.form:not(.unstackable) .four.fields:not(.unstackable) > .field,
.ui.form:not(.unstackable) .five.fields:not(.unstackable) > .fields,
.ui.form:not(.unstackable) .five.fields:not(.unstackable) > .field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .two.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .three.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .four.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .five.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .six.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .seven.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .eight.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .nine.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .ten.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .eleven.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .twelve.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .thirteen.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .fourteen.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .fifteen.wide.field,
.ui.form:not(.unstackable) .fields:not(.unstackable) > .sixteen.wide.field {
width: @oneColumn !important;
}
.ui.form .fields {
margin-bottom: 0em;
}
}

  .ui.form:not(.unstackable) .fields:not(.unstackable) > .one.wide.field,

Are one-wide fields supposed to stack on mobile through some other mechanism? If not, I think the above line should be added so that they behave like all the others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant