[Button] Button label text should not wrap
See original GitHub issueBug report
Button label text currently wraps if long, see spec/mdc-dialog/classes/overflow-accessible-font-size.html
Per https://material.io/design/components/buttons.html#anatomy, the button label should stay on a single line.
Screenshots
See our screenshot example: spec/mdc-dialog/classes/overflow-accessible-font-size.html
Possible solution
We should add to the button white-space: nowrap
and to the label width: 100%
.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:20
- Comments:5
Top Results From Across the Web
How to wrap text of HTML button with fixed width?
I've tried it with word-wrap, but that cuts of the word even though there are spaces available to wrap on.
Read more >Gallery Button - Wrapping Text - Power Platform Community
No, it is not possible to wrap button text. In this scenario it might be better to use a label placed on top...
Read more >Formatting text on buttons and in labels - Google Groups
The text simply runs off the screen. I can not seem to get them to "wrap" to another line at the edge of...
Read more >Problem wrapping text into a button - MDBootstrap
I have a problem with a text in my button, when the text is to long, it overflow it. ... Send it via...
Read more >Input group · Bootstrap v5.0
Input groups wrap by default via flex-wrap: wrap in order to accommodate custom form field validation within an input group. You may disable...
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
white-space: nowrap
andmin-width: max-content
worked for me. Thank you@joyzhongFor me, this worked