-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Form] Add unstackable form/fields #2866
Comments
I think the better choice is to use an |
That's up to you guys. Either way works. I see you marked this for 2.2. It's relatively simple and, at least in my opinion, very desirable feature. Any chances for it to ship with 2.1? |
No, |
Ah, makes sense. Thanks! |
I'm really waiting for it too, thanks. 👍 |
Just an update, 2.1 was delayed due to some personal issues. Will be coming next tuesday. |
Thanks for the heads up, @jlukic. Hope all is well. |
@tristanjahier : Workaround idea is: you could manually add :not(.unstackable) to all selector lines after the "/* Swap to full width on mobile */" line in an uncompressed semantic css. |
Was this added in the 2.2 release? |
yeah, same question with him ! |
I don't think this has been included yet. Would be an awesome addition :) |
I've added two new variations in Either of these will prevent the stacking behavior on their respective contents. |
The default behavior for form fields is to stack (
width: 100%
on smaller screens). This is a bit frustrating when one wants to preserve the layout of the form and for fields to adjust to smaller screen size. Right now the only solution, as far as I know, is to re-define Semantic UI classes.The Grid collection got this one right: by default, it does not stack columns. Instead, you have to use
stackable
class to enforce such behavior. It would be awesome to use the same "API" for Forms.For example, the code below will preserve the layout, i.e.
First Name
andLast Name
will render in the same row on both desktop and mobile:while with
stackable
, it will enforce current behavior present in Semantic UI (both fields in new rows):The solution is very easy – just add use
.ui.stackable.form
instead of.ui.form
in relevant@media
definitions. I can prepare a patch/PR for that. Just let me know what you think (I might have missed something etc.).The text was updated successfully, but these errors were encountered: