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

bug: IonLabel text-wrap broken #28825

Closed
3 tasks done
chrissmejia opened this issue Jan 13, 2024 · 2 comments
Closed
3 tasks done

bug: IonLabel text-wrap broken #28825

chrissmejia opened this issue Jan 13, 2024 · 2 comments
Labels

Comments

@chrissmejia
Copy link

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

text-wrap doesn't work

Expected Behavior

text-wrap to work

Steps to Reproduce

Compare v6 with v7 on the official docs:

https://ionicframework.com/docs/v6/api/label
Screenshot 2024-01-13 at 12 14 59

https://ionicframework.com/docs/api/label
Screenshot 2024-01-13 at 12 15 25

Code Reproduction URL

No response

Ionic Info

Same as in the docs, I'm personally having the same issue on "@ionic/vue": "^7.6.3" ant patched on my side, but leaving this here to improve the framework.

Additional Information

I'm migrating from 6.x to 7.x, 6.x was fine.

@ionitron-bot ionitron-bot bot added the triage label Jan 13, 2024
@mapsandapps mapsandapps self-assigned this Jan 15, 2024
@mapsandapps
Copy link
Contributor

Hi, we changed the default text wrapping of a Label within an Item in 7.6.0 (changelog). To have a Label truncate with an ellipsis, you can add the "ion-text-nowrap" class. E.g.

<ion-item>
  <ion-label class="ion-text-nowrap">
    Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet,
      consectetur adipiscing elit.
  </ion-label>
</ion-item>

I'll update the docs to apply this class where relevant. Thanks for pointing out that the docs are incorrect!

@mapsandapps mapsandapps closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
@mapsandapps mapsandapps removed their assignment Jan 15, 2024
Copy link

ionitron-bot bot commented Feb 14, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. 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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Feb 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants