Skip to content

Commit bc7207c

Browse files
committed
revert tooltip demo
1 parent e96436d commit bc7207c

File tree

3 files changed

+10
-46
lines changed

3 files changed

+10
-46
lines changed
Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<div class="demo-tooltip" cdk-scrollable>
1+
<div class="demo-tooltip">
22
<h1>Tooltip Demo</h1>
33

44
<p class="centered">
55
<button #tooltip="mdTooltip"
6-
md-raised-button
7-
color="primary"
8-
[mdTooltip]="message"
9-
[mdTooltipPosition]="position"
10-
[mdTooltipShowDelay]="showDelay"
11-
[mdTooltipHideDelay]="hideDelay">
6+
md-raised-button
7+
color="primary"
8+
[mdTooltip]="message"
9+
[mdTooltipPosition]="position"
10+
[mdTooltipShowDelay]="showDelay"
11+
[mdTooltipHideDelay]="hideDelay">
1212
Mouse over to see the tooltip
1313
</button>
1414
</p>
@@ -40,7 +40,7 @@ <h1>Tooltip Demo</h1>
4040
</p>
4141

4242
<strong>Mouse over to</strong>
43-
<button md-raised-button color="primary" (mouseenter)="tooltip1.show(); tooltip2.show()">
43+
<button md-raised-button color="primary" (mouseenter)="tooltip.show()">
4444
Show tooltip
4545
</button>
4646
<button md-raised-button color="primary" (mouseenter)="tooltip.hide()">
@@ -49,29 +49,4 @@ <h1>Tooltip Demo</h1>
4949
<button md-raised-button color="primary" (mouseenter)="tooltip.toggle()">
5050
Toggle tooltip
5151
</button>
52-
</div>
53-
54-
<div class="scrolling-container" cdk-scrollable>
55-
Scroll to see tooltip button.
56-
<button #tooltip1="mdTooltip"
57-
md-raised-button
58-
color="primary"
59-
[md-tooltip]="message"
60-
[tooltip-position]="position"
61-
[tooltipShowDelay]="showDelay"
62-
[tooltipHideDelay]="hideDelay">
63-
Mouse over to see the tooltip
64-
</button>
65-
</div>
66-
<div class="scrolling-container" cdk-scrollable>
67-
Scroll to see tooltip button.
68-
<button #tooltip2="mdTooltip"
69-
md-raised-button
70-
color="primary"
71-
[md-tooltip]="message"
72-
[tooltip-position]="position"
73-
[tooltipShowDelay]="showDelay"
74-
[tooltipHideDelay]="hideDelay">
75-
Mouse over to see the tooltip
76-
</button>
7752
</div>

src/demo-app/tooltip/tooltip-demo.scss

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,4 @@
55
md-radio-button {
66
display: block;
77
}
8-
}
9-
10-
.scrolling-container {
11-
margin: 300px;
12-
height: 300px;
13-
width: 300px;
14-
overflow: auto;
15-
16-
button {
17-
margin: 500px;
18-
}
19-
}
8+
}

src/demo-app/tooltip/tooltip-demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ export class TooltipDemo {
1313
message: string = 'Here is the tooltip';
1414
showDelay = 0;
1515
hideDelay = 0;
16-
}
16+
}

0 commit comments

Comments
 (0)