97732 Context help toggle button only appears when there is at least one element with a tooltip on the page

This commit is contained in:
Koen Pauwels
2023-01-27 11:59:24 +01:00
parent e717e610f9
commit bceca43580
6 changed files with 17 additions and 33 deletions

View File

@@ -1,12 +1,10 @@
<div>
<div *ngIf="buttonVisible$ | async">
<a href="javascript:void(0);"
role="button"
(click)="onClick()"
[attr.aria-label]="((buttonDisabled$ | async) ? 'nav.context-help-toggle-disabled' : 'nav.context-help-toggle') | translate"
[title]="((buttonDisabled$ | async) ? 'nav.context-help-toggle-disabled' : 'nav.context-help-toggle') | translate"
[attr.aria-label]="'nav.context-help-toggle' | translate"
[title]="'nav.context-help-toggle' | translate"
>
<i class="fas fa-lg fa-fw fa-question-circle"
[class]="(buttonDisabled$ | async) ? 'ds-context-help-toggle-disabled' : 'ds-context-help-toggle-enabled'"
></i>
<i class="fas fa-lg fa-fw fa-question-circle ds-context-help-toggle"></i>
</a>
</div>