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

Add utility class which adds ellipsis if text overflows #19314

Closed
0xadri opened this issue Feb 25, 2016 · 2 comments
Closed

Add utility class which adds ellipsis if text overflows #19314

0xadri opened this issue Feb 25, 2016 · 2 comments

Comments

@0xadri
Copy link

0xadri commented Feb 25, 2016

As explained in the below StackOverflow question, one might often want to add an ellipsis to some text if it overflows.

http://stackoverflow.com/questions/802175/truncating-long-strings-with-css-feasible-yet/22811590#22811590

I created a pull request for this feature #19313

It's my first time contributing to Bootstrap so forgive me if I'm doing anything incorrectly.

@cvrebert cvrebert changed the title Add feature to Utility classes: Add ellipsis if text overflows Add utility class which adds ellipsis if text overflows Feb 25, 2016
@niutech
Copy link

niutech commented Jul 8, 2016

There is already such a mixin: text-overflow() in v3 and text-truncate() in v4. However, it should be available as a class: .text-truncate.

@mdo mdo modified the milestone: v4.1 ideas Oct 24, 2016
@mdo mdo modified the milestones: v4.0.0-beta, v4.1 ideas Jul 2, 2017
@mdo mdo added the has-pr label Jul 2, 2017
@mdo
Copy link
Member

mdo commented Jul 2, 2017

Gotcha coming in #22961

@mdo mdo closed this as completed in #22961 Jul 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants