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 label getting ugly when too long #22157

Closed
2 tasks done
benneq opened this issue Aug 11, 2020 · 1 comment
Closed
2 tasks done

TextField label getting ugly when too long #22157

benneq opened this issue Aug 11, 2020 · 1 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

Comments

@benneq
Copy link
Contributor

benneq commented Aug 11, 2020

  • 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 😯

The label text a b c d e f g h i j k l m n o p q r s t does wrap:
Bildschirmfoto 2020-08-11 um 18 28 55
Bildschirmfoto 2020-08-11 um 18 29 01

Expected Behavior 🤔

It shouldn't look that ugly :D I've tried some thing in CodeSandbox (see below) that could be a more pleasing solution.

Steps to Reproduce 🕹

https://codesandbox.io/s/elated-http-w8u25?file=/src/Demo.js
Just uncomment one of the "style" lines to see what my suggested fixes look like.

Steps:

  1. Use TextField with long label text.

Your Environment 🌎

Tech Version
Material-UI v4.11.0
React 16.12.0
Browser Chrome 84
TypeScript 3.9.7
etc. ---
@benneq benneq added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Aug 11, 2020
@oliviertassinari oliviertassinari added component: text field This is the name of the generic UI component, not the React module! 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 Aug 11, 2020
@oliviertassinari
Copy link
Member

Duplicate of #12255

@oliviertassinari oliviertassinari marked this as a duplicate of #12255 Aug 12, 2020
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

2 participants