Skip to content

Commit

Permalink
fix(tooltip): provide a maximum width (angular#2678)
Browse files Browse the repository at this point in the history
Adds a `max-width` to the tooltip, in order to wrap longer lines of text. Note that the value is arbitrary since there was nothing about it in the spec.

Fixes angular#2671.
  • Loading branch information
crisbeto authored and kara committed Jan 20, 2017
1 parent 6e63878 commit 80ac71e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/tooltip/tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


$md-tooltip-target-height: 22px;
$md-tooltip-max-width: 250px;
$md-tooltip-font-size: 10px;
$md-tooltip-margin: 14px;
$md-tooltip-horizontal-padding: 8px;
Expand All @@ -19,6 +20,7 @@ $md-tooltip-vertical-padding: ($md-tooltip-target-height - $md-tooltip-font-size
font-family: $md-font-family;
font-size: $md-tooltip-font-size;
margin: $md-tooltip-margin;
max-width: $md-tooltip-max-width;

@include cdk-high-contrast {
outline: solid 1px;
Expand Down

0 comments on commit 80ac71e

Please sign in to comment.