Skip to content

Commit 9cf5406

Browse files
committed
fix(tooltip): Using click event for the manual tooltip sample.
1 parent e8a74bb commit 9cf5406

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/material-examples/tooltip-manual/tooltip-manual-example.html

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
<div>
2-
<span> Mouse over to </span>
2+
<span> Click the following buttons to... </span>
33
<button mat-button
4-
(mouseenter)="tooltip.show()"
5-
(focus)="tooltip.show()"
6-
(focusout)="tooltip.hide()"
4+
(click)="tooltip.show()"
75
aria-label="Button that progamatically shows a tooltip on another button"
86
class="example-action-button">
97
show
108
</button>
119
<button mat-button
12-
(mouseenter)="tooltip.hide()"
13-
(focus)="tooltip.hide()"
10+
(click)="tooltip.hide()"
1411
aria-label="Button that progamatically hides a tooltip on another button"
1512
class="example-action-button">
1613
hide
1714
</button>
1815
<button mat-button
19-
(mouseenter)="tooltip.toggle()"
20-
(focus)="tooltip.toggle()"
21-
(focusout)="tooltip.hide()"
16+
(click)="tooltip.toggle()"
2217
aria-label="Button that progamatically toggles a tooltip on another button to show/hide"
2318
class="example-action-button">
2419
toggle show/hide

0 commit comments

Comments
 (0)