From 9855cd4752787634ccff768c9b2c0010b5a19bb6 Mon Sep 17 00:00:00 2001 From: Pushyami Gundala Date: Wed, 4 Sep 2024 15:44:40 -0400 Subject: [PATCH] #1598 sync the text for aria-label and tooltip --- assets/src/components/AssignmentTable.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/src/components/AssignmentTable.js b/assets/src/components/AssignmentTable.js index 35aa23ed..38b4557c 100644 --- a/assets/src/components/AssignmentTable.js +++ b/assets/src/components/AssignmentTable.js @@ -487,12 +487,12 @@ function AssignmentTable (props) { ? [{ color: 'green', value: a.goalGrade, draggable: true }] : [] } - description={`This assignment is worth ${a.percentOfFinalGrade}% of your grade. - Points possible: ${a.pointsPossible}. - Your goal: ${(a.goalGrade ? a.goalGrade : 'None')}. - Your grade: ${(a.grade ? a.grade : 'Not graded')}. - Class average: ${a.averageGrade}. - Rules: ${(a.rules ? a.rules : 'There are no rules for this assignment')}. `} + description={`Your goal: ${(a.goalGradeSetByUser ? roundToXDecimals(a.goalGrade, placeToRoundTo(a.outOf)) : 'None')}. + Points possible: ${a.pointsPossible}. Rules: ${(a.rules ? a.rules : 'There are no rules for this assignment')}. + ${a.graded + ? `Your grade: ${roundToXDecimals(a.currentUserSubmission.score, placeToRoundTo(a.outOf))}. + Class average: ${roundToXDecimals(a.averageGrade, placeToRoundTo(a.outOf))}.` + : ''}`} onBarFocus={el => setPopoverEl(key, el)} onBarBlur={clearPopoverEl} />