Skip to content
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

[TextField] Outlined label overlaps by border #18196

Closed
2 tasks done
dchebakov opened this issue Nov 4, 2019 · 7 comments
Closed
2 tasks done

[TextField] Outlined label overlaps by border #18196

dchebakov opened this issue Nov 4, 2019 · 7 comments
Labels
duplicate This issue or pull request already exists

Comments

@dchebakov
Copy link

dchebakov commented Nov 4, 2019

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

If outlined input initially was hidden (for example by css) and then appear, then label being overlaps by border.

Steps to Reproduce 🕹

resize-outlined-input

  1. Open codesandbox example
  2. Increase the width of the preview window to input appear
  3. Try input something
@oliviertassinari
Copy link
Member

@dchebakov How did you spot this issue (in which context)?

@dchebakov
Copy link
Author

@oliviertassinari I have search bar (at the header of my website), which appear only on large displays.

@oliviertassinari
Copy link
Member

@dchebakov We have tried a solution in #17680 but it's unclear if it will land. I can advise you to only render the textfield when visible or to change the key when the visible state changes.

@oliviertassinari oliviertassinari added component: text field This is the name of the generic UI component, not the React module! bug 🐛 Something doesn't work labels Nov 4, 2019
@paaacman
Copy link

paaacman commented Nov 7, 2019

We have the same issue.
The fieldset > legend tag width doesn't change.
With @material-ui/core@4.4.3

@mattsrobot
Copy link

Also having this issue inside a dialog.

@stevefrenzel
Copy link

I'm having a similar issue with the Select component.

Referring to the demo for multiple selects, the variant prop with a value of 'outlined' ONLY works when removing the input prop entirely.

Also it doesn't display 100% correctly until the FormControl component receives the variant prop with a value of 'outlined' as well.

After doing this the label will go up, but will be covered by the border of the outline.

Would be great to have a label prop for the Select component as well, as it's working like a charm with the TextField component.

@oliviertassinari
Copy link
Member

oliviertassinari commented Nov 30, 2019

I'm closing as a duplicate of #17355

@oliviertassinari oliviertassinari added duplicate This issue or pull request already exists and removed bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module! labels Nov 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants