fix: grey out problem scores when a learner does not have access, instead of when a learner does have access (#565)

This commit is contained in:
Matthew Piatetsky
2021-07-27 11:52:51 -04:00
committed by GitHub
parent 52750ef769
commit 2075a0b3dd

View File

@@ -10,7 +10,7 @@ function ProblemScoreDrawer({ intl, problemScores, subsection }) {
return (
<span className="row w-100 m-0 x-small ml-4 pt-2 pl-1 text-gray-700 flex-nowrap">
<span id="problem-score-label" className="col-auto p-0">{intl.formatMessage(messages.problemScoreLabel)}</span>
<div className={classNames('col', 'p-0', { 'greyed-out': subsection.learnerHasAccess })}>
<div className={classNames('col', 'p-0', { 'greyed-out': !subsection.learnerHasAccess })}>
<ul className="list-unstyled row w-100 m-0" aria-labelledby="problem-score-label">
{problemScores.map(problemScore => (
<li className="ml-3">{problemScore.earned}/{problemScore.possible}</li>