Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67755

Question type Embedded Answers (Cloze): Feedback texts are not readable if gap is surrounded with <sub> or <sup> tags

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.4
    • Fix Version/s: None
    • Component/s: Questions, Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      Hi,

      a teacher for Chemistry encountered this problem.

      If you place your brackets within <sub> or <sup> tags, then the hint for the solution is not readable anymore:

      Steps to reproduce

      1. Login as a teacher and go to one of your course
      2. Turn editing on
      3. Add a new quiz activty
      4. Add a new "Embedded Answers (Cloze)" question
      5. Set the title to "Atomic magnesium"
      6. Enable the HTML view for the atto editor for the Question text and enter this question

        <p>atomic Magnesium [{1:SHORTANSWER:=Ne}]&nbsp; {1:SHORTANSWER:=3s}<sup>{1:SHORTANSWER:=2}</sup><br></p>
        

      7. Save and preview the question
      8. Type in some answer (either wrong or right - doesn't matter)
      9. Submit and finish the preview
      10. See the result for the hovering text is not readable.

      Cause
      This is because the tags reduce the font size and the line height of the feedbackspan.

      Best, Kathrin

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kosswa Kathrin Osswald
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: