Skip to content

Commit

Permalink
fix(tooltip): provide a maximum width (#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 #2671.
  • Loading branch information
crisbeto authored and mmalerba committed Jan 18, 2017
1 parent 4f59ad0 commit fb5e1d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/tooltip/tooltip.scss
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 fb5e1d4

Please sign in to comment.