-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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 .text-wrap
class
#27568
add .text-wrap
class
#27568
Conversation
Hi @browner12, There is a difference between
This has been changed lately: 24bdadf#diff-8a4fc4262c9197c73b80fb80d8863ae5 So at the moment there's not really a reason to add this I think. |
The reason I stuck with Even though without the button behavior, I think this is a good small complement to the existing utility class. |
I'm not fully convinced yet. Could you maybe provide a demo to show its use-case? |
There are other components in Bootstrap that by default have a This class would allow users to override that behavior on an individual basis. <div style="width: 100px; border: 1px solid red; ">
<div class="badge badge-primary text-wrap">testing a very long badge name</div>
<div class="badge badge-primary">testing a very long badge name</div>
</div>
<style>
.text-wrap {
white-space: normal;
}
</style> |
Shouldn't we add this in docs too? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we should add this to the docs.
@MartijnCuppens: I made the changes, have a look again and then I'll clean the branch and merge. |
|
this is the opposite of `.text-nowrap`, and a forces elements to wrap onto new lines. One use case for this is extra long button text. Bootstrap buttons by default do no wrap, so this class could be used to override that behavior.
thanks guys! |
this is the opposite of
.text-nowrap
, and a forces elements to wrap onto new lines.One use case for this is extra long button text. Bootstrap buttons by default do no wrap, so this class could be used to override that behavior.
references issue #19315