Fix boolean icon accessiblity

This commit is contained in:
Chocobozzz 2024-06-11 11:04:29 +02:00
parent 3a5d1af477
commit 4422726674
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 7 additions and 2 deletions

View File

@ -1,2 +1,7 @@
<my-global-icon *ngIf="value === true" iconName="tick" i18n-aria-label aria-label="yes"></my-global-icon>
<my-global-icon *ngIf="value === false" iconName="cross" i18n-aria-label aria-label="no"></my-global-icon>
@if (value === true) {
<span class="visually-hidden" i18n>yes</span>
<my-global-icon iconName="tick"></my-global-icon>
} @else {
<span class="visually-hidden" i18n>no</span>
<my-global-icon iconName="cross"></my-global-icon>
}