Skip to content

Commit 328ed48

Browse files
committed
fix(tooltip): tooltip sample not working with keyboard navigation. Fixes #15044
1 parent 664593a commit 328ed48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22
<span> Mouse over to </span>
33
<button mat-button
44
(mouseenter)="tooltip.show()"
5+
(keyup.enter)="tooltip.show()"
56
aria-label="Button that progamatically shows a tooltip on another button"
67
class="example-action-button">
78
show
89
</button>
910
<button mat-button
1011
(mouseenter)="tooltip.hide()"
12+
(keyup.enter)="tooltip.hide()"
1113
aria-label="Button that progamatically hides a tooltip on another button"
1214
class="example-action-button">
1315
hide
1416
</button>
1517
<button mat-button
1618
(mouseenter)="tooltip.toggle()"
19+
(keyup.enter)="tooltip.toggle()"
1720
aria-label="Button that progamatically toggles a tooltip on another button to show/hide"
1821
class="example-action-button">
1922
toggle show/hide

0 commit comments

Comments
 (0)