Skip to content

Commit

Permalink
improved tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Sep 5, 2018
1 parent e08b67c commit 6c297a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Expand Up @@ -51,7 +51,10 @@ public String getModalContainer(Component component) {
public void onConfigure(Component component) {
super.onConfigure(component);

component.add(AttributeModifier.replace("class", getCssClass()));
String cssClass = getCssClass();
if (cssClass != null) {
component.add(AttributeModifier.replace("class", cssClass));
}
}

@Override
Expand Down
Expand Up @@ -1382,3 +1382,9 @@ th.shrink {
font-size: 12px;
padding-bottom: 5px;
}

// This will make the tooltip respect new lines.
// Lines will still wrap if they are longer than the default max-width of the container.
.tooltip-inner {
white-space:pre-wrap;
}

0 comments on commit 6c297a6

Please sign in to comment.