Fix: Check _canShowCorrectness value before applying item-level classes (#240)#241
Fix: Check _canShowCorrectness value before applying item-level classes (#240)#241oliverfoster merged 2 commits intomasterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes issue #240 by ensuring that item-level correctness classes (is-correct and is-incorrect) are only applied when the _canShowCorrectness configuration is enabled. Additionally, it corrects a typo in the pull request template.
- Added
_canShowCorrectnesscheck to item-level class conditions for consistent behavior with component-level correctness display - Fixed typo in pull request template ("udpate" → "update")
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| templates/mcq.jsx | Added _canShowCorrectness check before applying is-correct and is-incorrect classes to individual MCQ items, ensuring consistency with the component-level correctness display configuration |
| .github/pull_request_template.md | Fixed spelling error in the "Update" section header |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🎉 This PR is included in version 7.6.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
|
I'm still conflicted on this.
Original prs |
Fixes #240
Fix