Add new component to fix the dynamic allocation for label space #1176
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Notes for Reviewers
This PR fixes #1175
Currently we use FormControl, InputLabel and Select for input fields or select dropdowns, but we face the issue for the label not getting the space allocated dynamically. I did test the components in Staclblitz from the official MUI website, and did not find any solution to it.
This new component: Replaces FormControl + TextField combinations with a single, properly styled component that fixes label/border intersection issues.
Features:
Working:
497222208-9dbed581-bc50-43d5-b711-3eda84beb3fc.mp4
Screencast.From.2025-10-03.19-10-35.online-video-cutter.com.mp4
We need to replace all the current FormControl and TextField with this component, then the issue for the dynamic label space will be solved.
Signed commits