File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/material-examples/tooltip-manual Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
< span > Mouse over to </ span >
3
3
< button mat-button
4
4
(mouseenter) ="tooltip.show() "
5
- (keyup.enter) ="tooltip.show() "
5
+ (focus) ="tooltip.show() "
6
+ (focusout) ="tooltip.hide() "
6
7
aria-label ="Button that progamatically shows a tooltip on another button "
7
8
class ="example-action-button ">
8
9
show
9
10
</ button >
10
11
< button mat-button
11
12
(mouseenter) ="tooltip.hide() "
12
- (keyup.enter ) ="tooltip.hide() "
13
+ (focus ) ="tooltip.hide() "
13
14
aria-label ="Button that progamatically hides a tooltip on another button "
14
15
class ="example-action-button ">
15
16
hide
16
17
</ button >
17
18
< button mat-button
18
19
(mouseenter) ="tooltip.toggle() "
19
- (keyup.enter) ="tooltip.toggle() "
20
+ (focus) ="tooltip.toggle() "
21
+ (focusout) ="tooltip.hide() "
20
22
aria-label ="Button that progamatically toggles a tooltip on another button to show/hide "
21
23
class ="example-action-button ">
22
24
toggle show/hide
You can’t perform that action at this time.
0 commit comments