Skip to content

Commit

Permalink
fix(tooltip): better handling of multi-line text (#2472)
Browse files Browse the repository at this point in the history
Fixes #2205.
  • Loading branch information
crisbeto authored and kara committed Jan 5, 2017
1 parent 3a11927 commit 7863e38
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/tooltip/tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
@import '../core/a11y/a11y';


$md-tooltip-height: 22px;
$md-tooltip-target-height: 22px;
$md-tooltip-font-size: 10px;
$md-tooltip-margin: 14px;
$md-tooltip-padding: 8px;
$md-tooltip-horizontal-padding: 8px;
$md-tooltip-vertical-padding: ($md-tooltip-target-height - $md-tooltip-font-size) / 2;

:host {
pointer-events: none;
}

.md-tooltip {
color: white;
padding: 0 $md-tooltip-padding;
padding: $md-tooltip-vertical-padding $md-tooltip-horizontal-padding;
border-radius: 2px;
font-family: $md-font-family;
font-size: 10px;
font-size: $md-tooltip-font-size;
margin: $md-tooltip-margin;
height: $md-tooltip-height;
line-height: $md-tooltip-height;

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

0 comments on commit 7863e38

Please sign in to comment.