Skip to content

Commit

Permalink
Fix aria message for score bar
Browse files Browse the repository at this point in the history
  • Loading branch information
otacke authored Jun 23, 2021
1 parent 6ebeec4 commit 9c3b4ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/essay.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ H5P.Essay = function ($, Question) {

if (!this.params.behaviour.ignoreScoring) {
const ariaMessage = (this.params.ariaYourResult)
.replace('@score', this.getScore())
.replace('@total', this.getMaxScore());
.replace('@score', ':num')
.replace('@total', ':total');
this.setFeedback(textScore, this.getScore(), this.getMaxScore(), ariaMessage);
}

Expand Down

0 comments on commit 9c3b4ac

Please sign in to comment.