Skip to content

Commit 76c6fa5

Browse files
MartinKamenovandrewseguin
authored andcommitted
fix(tooltip): tooltip sample not working with keyboard navigation. (#15111)
1 parent bd66e5c commit 76c6fa5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
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-
aria-label="Button that progamatically shows a tooltip on another button"
4+
(click)="tooltip.show()"
5+
aria-label="Show tooltip on the button at the end of this section"
66
class="example-action-button">
77
show
88
</button>
99
<button mat-button
10-
(mouseenter)="tooltip.hide()"
11-
aria-label="Button that progamatically hides a tooltip on another button"
10+
(click)="tooltip.hide()"
11+
aria-label="Hide tooltip on the button at the end of this section"
1212
class="example-action-button">
1313
hide
1414
</button>
1515
<button mat-button
16-
(mouseenter)="tooltip.toggle()"
17-
aria-label="Button that progamatically toggles a tooltip on another button to show/hide"
16+
(click)="tooltip.toggle()"
17+
aria-label="Show/Hide tooltip on the button at the end of this section"
1818
class="example-action-button">
1919
toggle show/hide
2020
</button>
@@ -25,4 +25,4 @@
2525
matTooltipPosition="right"
2626
aria-tooltip="Button that displays and hides a tooltip triggered by other buttons">
2727
Action
28-
</button>
28+
</button>

0 commit comments

Comments
 (0)