Skip to content

Commit ba95aef

Browse files
authored
tl-its-umich-edu#1598 sync the text for aria-label and tooltip (tl-its-umich-edu#1618)
1 parent c294b43 commit ba95aef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

assets/src/components/AssignmentTable.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,12 +487,12 @@ function AssignmentTable (props) {
487487
? [{ color: 'green', value: a.goalGrade, draggable: true }]
488488
: []
489489
}
490-
description={`This assignment is worth ${a.percentOfFinalGrade}% of your grade.
491-
Points possible: ${a.pointsPossible}.
492-
Your goal: ${(a.goalGrade ? a.goalGrade : 'None')}.
493-
Your grade: ${(a.grade ? a.grade : 'Not graded')}.
494-
Class average: ${a.averageGrade}.
495-
Rules: ${(a.rules ? a.rules : 'There are no rules for this assignment')}. `}
490+
description={`Your goal: ${(a.goalGradeSetByUser ? roundToXDecimals(a.goalGrade, placeToRoundTo(a.outOf)) : 'None')}.
491+
Points possible: ${a.pointsPossible}. Rules: ${(a.rules ? a.rules : 'There are no rules for this assignment')}.
492+
${a.graded
493+
? `Your grade: ${roundToXDecimals(a.currentUserSubmission.score, placeToRoundTo(a.outOf))}.
494+
Class average: ${roundToXDecimals(a.averageGrade, placeToRoundTo(a.outOf))}.`
495+
: ''}`}
496496
onBarFocus={el => setPopoverEl(key, el)}
497497
onBarBlur={clearPopoverEl}
498498
/>

0 commit comments

Comments
 (0)