-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Feature Request] vBtn could have wrap-text props #11357
Comments
I understand the issue but I think it's important to note that the Material Design spec is against this. Material Design - Buttons Anatomy. The button text should be in a single line and also it should be short, which would make buttons less prone to need line breaking. |
Thank for explanation and ref. I got the point now. |
This is unavoidable when you have to cater for other languages. I'm currently working on a German client and the words are just too long to avoid this issue. |
How do people handle long text in buttons? |
I ended up creating my own custom component |
This is my simple solution for wrapping long text in buttons |
I ended up below way. <v-btn>
<span>
1st line<br />
<span class="text-caption" style="line-height: unset">2nd line</span>
</span>
</v-btn> |
Problem to solve
Should allow the button to wrap the text
Codepen link: https://codepen.io/sinh117801/pen/dyYmEXx
Proposed solution
the solution i use is to custom
.v-btn__content
.v-btn__content { width: 100%; white-space: normal; }
The text was updated successfully, but these errors were encountered: