-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: long text with max width not truncating in button #8700
Comments
I think the flex is there to help with centering? Not sure how you all would want to fix it, but the only way I have been able to fix something like this is to give it another inner child. e.g.
I then put a class on
|
This is actually pretty complex since buttons are used in so many components. Adding an inner div to buttons would cause issues elsewhere, and changing the display from flex to inline causes issues with buttons containing icons and anchor links styled to look like buttons. I am going to remove this from the milestone for now since the code above by @ncapito works, but I'll revisit this issue. |
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. Thank you for using Ionic! |
Issue number: resolves #8700 BREAKING CHANGE: Button text now wraps by default.
Thank you for submitting this issue. Starting in Ionic Framework 7.2, we encouraged developers to opt in to text wrapping in buttons by setting As a result of the changes merged in #28682, text wrapping of buttons will be the default behavior starting in Ionic version 8. |
Short description of the problem:
Long text in buttons is not being truncated. I am using
full
andblock
buttonsWhile the button does have the ellipsis, as show below;
This doesn't work, as the
.button-inner
class hasdisplay: flex
What behaviour are you expecting?
Display ellipsis.
This can be done by setting the display of
.button-inner
toinline
. However, I don't really know the reason for it's display being flex.Which Ionic Version? 2 RC.0
The text was updated successfully, but these errors were encountered: