Skip to content

Commit

Permalink
Fix oppia#18199: Fix math expression preview with screen reader (oppi…
Browse files Browse the repository at this point in the history
…a#19065)

Fix math expression preview with screen reader
  • Loading branch information
Patel-Muhammad authored Nov 1, 2023
1 parent a4f007c commit de8efec
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
<div>
<textarea [ngModel]="localValue.label" (ngModelChange)="debouncedUpdate$.next($event)" placeholder="Enter a math expression using LaTeX, e.g. '\frac{x}{y}'"></textarea>
</div>
Preview:
<span *ngIf="localValue.label" [oppiaMathJax]="localValue.label">
<span tabindex="0">
Preview:
<span *ngIf="localValue.label" [oppiaMathJax]="localValue.label" [attr.aria-label]="localValue.label">
</span>
</span>
<span *ngIf="!localValue.label" [oppiaMathJax]="placeholderText" class="text-secondary">
</span>
Expand Down

0 comments on commit de8efec

Please sign in to comment.