Skip to content

Commit

Permalink
#1598 sync the text for aria-label and tooltip (#1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushyamig authored Sep 5, 2024
1 parent c294b43 commit ba95aef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions assets/src/components/AssignmentTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
Expand Down

0 comments on commit ba95aef

Please sign in to comment.