Skip to content

Commit 35bdd00

Browse files
crisbetojosephperrott
authored andcommitted
fix(paginator): inconsistently disabling tooltips between browsers (#12539)
1 parent 6048f6f commit 35bdd00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/paginator/paginator.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
(click)="firstPage()"
3131
[attr.aria-label]="_intl.firstPageLabel"
3232
[matTooltip]="_intl.firstPageLabel"
33+
[matTooltipDisabled]="!hasPreviousPage()"
3334
[matTooltipPosition]="'above'"
3435
[disabled]="!hasPreviousPage()"
3536
*ngIf="showFirstLastButtons">
@@ -42,6 +43,7 @@
4243
(click)="previousPage()"
4344
[attr.aria-label]="_intl.previousPageLabel"
4445
[matTooltip]="_intl.previousPageLabel"
46+
[matTooltipDisabled]="!hasPreviousPage()"
4547
[matTooltipPosition]="'above'"
4648
[disabled]="!hasPreviousPage()">
4749
<svg class="mat-paginator-icon" viewBox="0 0 24 24" focusable="false">
@@ -53,6 +55,7 @@
5355
(click)="nextPage()"
5456
[attr.aria-label]="_intl.nextPageLabel"
5557
[matTooltip]="_intl.nextPageLabel"
58+
[matTooltipDisabled]="!hasNextPage()"
5659
[matTooltipPosition]="'above'"
5760
[disabled]="!hasNextPage()">
5861
<svg class="mat-paginator-icon" viewBox="0 0 24 24" focusable="false">
@@ -64,6 +67,7 @@
6467
(click)="lastPage()"
6568
[attr.aria-label]="_intl.lastPageLabel"
6669
[matTooltip]="_intl.lastPageLabel"
70+
[matTooltipDisabled]="!hasNextPage()"
6771
[matTooltipPosition]="'above'"
6872
[disabled]="!hasNextPage()"
6973
*ngIf="showFirstLastButtons">

0 commit comments

Comments
 (0)