You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Moodle's base 'clean' theme, or any other bootstrap-based theme, the radio buttons shown when viewing an individual response to a "rate" question are displayed with an offset to the left.
The effect of this is that users viewing an individual response believe that the choice the respondent made was one choice further to the left.
Note that my examples here used named ranks, but this appears to be a problem with standard 1..5 ranks as well.
In this example, the user chose Strongly agree for the first entry in the table ("Test"), and Agree for the second ("Two").
This does not match the view when answering the same question, where the buttons appear correctly:
Can you review https://tracker.moodle.org/browse/CONTRIB-6809? I believe this has already been fixed in the latest code in the MOODLE_32_STABLE branch, and the latest release on moodle.org.
Edit - nevermind. It looks like that fixed it in some cases, but not all.
When using Moodle's base 'clean' theme, or any other bootstrap-based theme, the radio buttons shown when viewing an individual response to a "rate" question are displayed with an offset to the left.
The effect of this is that users viewing an individual response believe that the choice the respondent made was one choice further to the left.
Note that my examples here used named ranks, but this appears to be a problem with standard 1..5 ranks as well.
In this example, the user chose Strongly agree for the first entry in the table ("Test"), and Agree for the second ("Two").
This does not match the view when answering the same question, where the buttons appear correctly:
My brief analysis suggests that
/templates/response_rate.mustache
is adding theradio
class of the div containing the table. https://github.com/remotelearner/moodle-mod_questionnaire/blob/MOODLE_32_STABLE/templates/response_rate.mustache#L60The
.radio input[type="radio"], .checkbox input[type="checkbox"]
rule in the bootstrap CSS appears to setfloat: left; margin-left: -20px;
.If I remove the
radio
class from thediv
on L60 ofresponse_rate.mustache
, the radio buttons appear correctly in an individiual response.I would submit a PR, but I'm not sure if there are other implications to removing this class!
The text was updated successfully, but these errors were encountered: