Skip to content

Commit

Permalink
strikethrough actual answer
Browse files Browse the repository at this point in the history
  • Loading branch information
johngibbons committed Feb 25, 2016
1 parent 44dec56 commit b87d68a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sass/components/answer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,9 @@
}
}

&.actual {
font-weight: 700;
text-decoration: line-through;
}

}
1 change: 1 addition & 0 deletions src/components/Answer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const Answer = ({
'selected': isSelected,
'correct': isSelected && correctAnswer && correctAnswer === id,
'incorrect': isSelected && correctAnswer && correctAnswer !== id,
'actual': correctAnswer === id && !isSelected,
'answer': true,
'list-group-item': true
});
Expand Down

0 comments on commit b87d68a

Please sign in to comment.