Skip to content

[TextField] Labels on Textfields with InputProp StartAdornment are always shrunk #26934

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

Closed
2 tasks done
wouter-leistra opened this issue Jun 24, 2021 · 1 comment
Closed
2 tasks done
Labels
component: text field This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@wouter-leistra
Copy link

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

Current Behavior 😯

When having a textfield with Label and StartIcon inputAdornment the label is always shrunk, unlike the Endicon inputAdornment where this behavior is not occurring.

Expected Behavior 🤔

Textfield should behave the same if startIcon or endIcon input adornments are used. This means that if there is no focus on the field and the field is empty the label is shown not shrunk.

Steps to Reproduce 🕹

https://codesandbox.io/s/frosty-greider-rxl73?file=/src/App.tsx

@wouter-leistra wouter-leistra added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 24, 2021
@michal-perlakowski
Copy link
Contributor

Duplicate of #13898.

@github-actions github-actions bot added duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jun 24, 2021
@oliviertassinari oliviertassinari added the component: text field This is the name of the generic UI component, not the React module! label Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants