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

Question type cloze (multianswer) select element, shouldnt be using same css classes as matching question type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.8
    • Fix Version/s: None
    • Component/s: Quiz, Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      The CSS selector for question type cloze is the same as for matching question type.

      The cloze question type "text" input contain an extra css class : form-inline. Why is it not the same for the "select" input in cloze questions?

      If I enter a long anwer for matching question type the select input goes beyond the parent as its css is set to --> width : auto. 

      If I fix matching question type css with a width:100% for the display, it impacts the cloze question types and the "selects" input inside a cloze question are displayed with 100% width as well which renders it unreadable.

      In the cloze qtype screenshot I forced the text input to auto as they have this extra CSS class that allows me to edit them without impacting the other type of questions.

       

      Boost theme + Moodle 3.5.8

        Attachments

        1. cloze_qtype_width100.png
          252 kB
          Camille Tardy
        2. matching_qtype_width100.png
          285 kB
          Camille Tardy
        3. matching_qtype_widthAuto.png
          633 kB
          Camille Tardy

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            Camtrd Camille Tardy
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Bas Brands
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: