You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users often need to style Button text with Classes.TEXT_OVERFLOW_ELLIPSIS styling to truncate long text. This is currently somewhat cumbersome to do; we often see styles like this in a CSS module:
// in a CSS module@use"@blueprintjs/core/lib/scss/variables"asbp;
.my-button {
:global(.#{bp.$ns}-button-text) {
overflow: hidden;
text-wrap: nowrap;
text-overflow: ellipsis;
}
}
#4460 will help with this; that will allow users to use Blueprint's utility styling class:
Environment
Feature request
Users often need to style Button text with
Classes.TEXT_OVERFLOW_ELLIPSIS
styling to truncate long text. This is currently somewhat cumbersome to do; we often see styles like this in a CSS module:#4460 will help with this; that will allow users to use Blueprint's utility styling class:
However it would be even nicer if Buttons had a prop for this styling behavior, something like:
^ this prop naming attempts to match up with
<Text ellipsize={true}>
The text was updated successfully, but these errors were encountered: