-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Open
Labels
ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: selectChanges related to the select.Changes related to the select.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.
Description
Steps to reproduce
Steps:
- Open this link to live example: Take the current Auto Width Code Sandbox
- Replace the
"Age"value of theInputLabeland the Select'slabelprop with"A Longer Title Than Usual" - Notice the effects of the change on the component
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 on inputWidth.
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
Metadata
Metadata
Assignees
Labels
ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: selectChanges related to the select.Changes related to the select.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

