119612: aria-label to also include warning message if applicable

(cherry picked from commit 8eaff78737)
This commit is contained in:
Jens Vannerum
2025-02-03 11:20:18 +01:00
parent c36c8d726e
commit df8859d976

View File

@@ -15,6 +15,6 @@
class="export-button btn btn-dark btn-sm" class="export-button btn btn-dark btn-sm"
[ngbTooltip]="(shouldShowWarning$ | async) ? tipContentWarning : tipContent" [ngbTooltip]="(shouldShowWarning$ | async) ? tipContentWarning : tipContent"
(click)="export()" (click)="export()"
[title]="tooltipMsg |translate" [attr.aria-label]="tooltipMsg |translate"> [title]="tooltipMsg | translate" [attr.aria-label]="(shouldShowWarning$ | async) ? ((tooltipMsg | translate) + ' ' + exportLimitExceededMsg): (tooltipMsg | translate)">
<i class="fas fa-file-export fa-fw"></i> <i class="fas fa-file-export fa-fw"></i>
</button> </button>