Fix display of MCQ/MRQ choices with long text. - #139
Conversation
ee92c7d to
f94d366
Compare
|
@itsjeyd Looks much better - I'm just wondering; did the MCQ question text used to be full width or have they always been half-width like this? |
|
@bradenmacdonald I'm not sure if they've always been half-width, but they have been in the more recent past. This PR does not change that particular aspect of the layout. |
There was a problem hiding this comment.
@itsjeyd It looks very nice, I just found one small issue with paddings. When that's fixed, this is +1.
👍
- I tested this: I followed the testing instructions and tested various combinations of questions in both problem builder and step builder.
- I read through the code
- I checked for accessibility issues
|
|
||
| .mentoring .choices-list .choice-label-text { | ||
| display: table-cell; | ||
| padding-left: 0.4em; |
|
@itsjeyd While testing this, I found that the layout is currently somewhat broken in RTL mode, but it's also broken on master, so I'm just including the screenshots here for reference, but fixing this is out of scope of this PR. I don't really remember whether problem-builder was ever RTL compatible. |
… choice tips in LMS theme.
|
@mtyaka Thanks for the review, and for catching the padding issue. I was using the Apros theme, which made it difficult/impossible to notice. Fixed in the most recent commit, please have another look. |
|
👍 thank you |
@itsjeyd As I feared, QA reviewed this and said the half-width MCQ text is not correct. Form further investigation I think it comes from #125. @pomegranited was this change deliberately made for a11y or is this a side effect? @itsjeyd Can we add a CSS rule to the Apros CSS to override that? |
|
@bradenmacdonald CC @itsjeyd IIRC, the choices width was adjusted simply to make tips appear alongside the choices, not as a specific a11y change. |




Reported by McKinsey.
cf. OC-2264
Screenshots (Apros)
MCQ:
MCQ during review (with tip):
Rating question:
Rating question during review (without tip):
MRQ:
MRQ during review (without tip):
Test instructions
Add a Step Builder block to a unit, setting "Max. attempts allowed" to a non-zero value, and "Extended Feedback" to True.
Add a Mentoring Step block and a Review Step block to the Step Builder block.
Add an MCQ, Rating, and MRQ to the Mentoring Step block, setting the text of some choices to a long string.
Add tips for individual choices to the MCQ.
Add a Score Summary block to the Review Step block.
Publish the unit and navigate to it in the LMS/Apros. Observe that alignment of choice texts matches screenshots.
Answer the questions, submit, and review grade until you have no attempts left. Use links to individual questions to review answers. Observe that alignment of choice texts matches screenshots.
Reviewers