-
Notifications
You must be signed in to change notification settings - Fork 153
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
Add size variations for inputs #289
Comments
I sent sketch a support question if this is possible. I only have gotten it to work for inputs without labels. |
We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. You can keep the conversation going with just a short comment. Thanks for your contributions. |
There is a way to adjust the height of a text field symbol without creating a new one, even with a label. I don't know why my GIFs are so slow :) This will however put the responsibility to resize to the correct height on designers. Changing input itself from 40 to 32 or 48 is easy, but when label (or more elements like error, info — I would need to check if Sketch can handle that) is present, now some calculations are required and this will lead to guess work, mistakes in designs etc. Technically it is possible to have one symbol in Sketch for input field in all its states (hover, disabled, placeholder, focus), but I think the power of Carbon kit lies exactly in having all of the separate states with simple symbol switch, rather than tweaking sub-symbols and overrides. That's why I would suggest to create separate groups for other sizes. I can help with that. |
Did your approach work for the You make good points, I think it would be safer to just have separate sizes. |
If a label, helper text and error don't need to be multi-line (no smart layout involved) then one symbol for all sizes approach seems to be working. It doesn't even needs that much of a cognitive load, just remember the sizes, add/remove 8px. Still, predefined sizes approach for me sounds better, even if it requires a lot of maintenance, but I leave the decision to you. |
We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. You can keep the conversation going with just a short comment. Thanks for your contributions. |
We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. You can keep the conversation going with just a short comment. Thanks for your contributions. |
Added! Will be in next kit update 🎉 |
Inputs are receiving
sm
andxl
size variations that need to be added to the kit.Is there a way to adjust the height of the input field without creating a new symbol set?
Dropdown/Combobox/Multi-select: (in code) @laurenmrice DONE 🤩
Date picker: (in code) @aagonzales DONE!
Note: Time picker doesn't have size variant in code so it was not included.
Text input: (in code) @aagonzales DONE!
Select: (in code) @aagonzales DONE!
Number input: (in code) @laurenmrice DONE!
Note: also adding helper text and no label versions.
File uploader: (in code) @laurenmrice
The text was updated successfully, but these errors were encountered: