TextInput placeholder text needs ellipsis for long text
See original GitHub issueThe placeholder text does not get truncated when it overflows the input. It should overflow with ellipsis and have a tooltip the user can use to see the full text.
What package(s) are you using?
-
carbon-components
- [x ]
carbon-components-react
Detailed description
Describe in detail the issue you’re having.
In some languages, the placeholder text we are using overflows the TextInput, and there is no ellipsis to clue the user of a run-off. Nor can the user hover and view the full text.
Is this issue related to a specific component?
TextInput
What browser are you working in?
Chrome
What version of the Carbon Design System are you using? Carbon react 7.9.0
Steps to reproduce the issue
https://codesandbox.io/s/epic-herschel-s4ef8
Additional information
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
HTML Input placeholder text-overflow: ellipsis does not work ...
This works at first, but when I click the input element before I type anything, the placeholder is still showing but not the...
Read more >Text Ellipsis (Input Placeholders) - CodePen
1. input(type="text", placeholder="This is a super long placeholder and will be cutoff most likely!") · 2. input(class="ellipsis", type="text", placeholder="This ...
Read more >text-overflow - CSS: Cascading Style Sheets - MDN Web Docs
The text-overflow CSS property sets how hidden overflow content is signaled to users. It can be clipped, display an ellipsis ('…
Read more >Truncating Text using Chakra UI - DEV Community
There are 2 ways to truncate Text in Chakra UI: ... Lorem ipsum is a placeholder text commonly used to demonstrate the visual...
Read more >React Native Text Overflow - Apicella Gomme
React Native Text OverflowOverflow occurs when the input is too large to. ... It concerns me that you need to set a transparent...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
2!
Trying to think of a solution for the original issue:
Which would you prefer?