-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
[Select] Auto Width title get cropped if longer than input value #45276
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
Comments
Thanks for the report @TheOneTheOnlyJJ. I marked this as an enhancement and ready to take. It makes sense to me since when there's no value selected the label is visually acting as the value. Let me know what you think @DiegoAndai |
Select
's title get cropped if longer than input value
I agree @aarongarciah. A question before marking it as "ready to take": If the label is longer than the value, which one should set the width? The label or the value? ![]() ![]() |
@DiegoAndai I think the longest value should win. |
@aarongarciah great! Added back the |
Hi @DiegoAndai I would like to work on this. Thanks in advance. |
@DiegoAndai I would like to work on this. Need some clarification on this: Are we supposed to show the value from dropdown to the label as well? |
I would add that this issue concerns all the input elements with this shape, not just the |
Hey @yermartee, go ahead. Sorry for not replying before. @Ashish-619, thanks for the interest. I'm assigning this to @yermartee, as he asked first. |
Hi @TheOneTheOnlyJJ , I'm interested in contributing to this issue. Could you please assign it to me? Looking forward to working on it! |
Any update on this? |
@TheOneTheOnlyJJ I apologize for the delay. I haven't been able to work on this yet. If someone else is available to handle it, please feel free to do so. |
Heya! I would like to contribute to this issue, if a maintainer has time to assign me to the this issue that would be great! I'm assuming from @yermartee's message no one is working on this issue currently, so I'll start looking into it now. |
It looks like most of this was resolved in #45625, I'll work from there |
@FGFAnderson assigned. |
Steps to reproduce
Steps:
"Age"
value of theInputLabel
and the Select'slabel
prop with"A Longer Title Than Usual"
Current behavior
Notice how the input label (title) gets cropped, both when it acts as content and when it is rendered above the actual input's content.
Expected behavior
The entire Select should be wide enough to fit the Title, even if the content is shorter.
The final width of the Select should be
max(inputWidth, titleWidth)
. Right now, it appears to only be based oninputWidth
.Context
This issue is a continuation of rjsf-team/react-jsonschema-form#4484.
Finding a solution here will also fix that one.
Your environment
No response
Search keywords: select title crop too long fit length style styling input value
The text was updated successfully, but these errors were encountered: