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

'current' class no longer applied to the section when it is the highlighted section

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0
    • 4.0
    • Course, UX
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • wip_MDL-73877_master
    • Hide

      1. Log in as an Administrator.

      2. Create a Topics course with the default values.

      3. Turn editing on and make section two the 'Highlight' one.

      4. Turn editing off.

      5. Confirm that the is a left border in both the Boost and Classic themes for the highlighted section two as described by the Figma design: .

      6. In the 'Raw SCSS' settings under the 'Advanced settings' tab under ther 'Appearance' of both the Boost and Classic themes, add the following CSS:

      .course-content .current {
          background-color: #ffc77a;
      }

      7. On the Topics course, confirm that section two has a yellow / orange background colour, i.e. #ffc77a.  Repeat after changing the theme from Boost to Classic.

      Show
      1. Log in as an Administrator. 2. Create a Topics course with the default values. 3. Turn editing on and make section two the 'Highlight' one. 4. Turn editing off. 5. Confirm that the is a left border in both the Boost and Classic themes for the highlighted section two as described by the Figma design: . 6. In the 'Raw SCSS' settings under the 'Advanced settings' tab under ther 'Appearance' of both the Boost and Classic themes, add the following CSS: .course-content .current {     background-color: #ffc77a; } 7. On the Topics course, confirm that section two has a yellow / orange background colour, i.e. #ffc77a.  Repeat after changing the theme from Boost to Classic.

      Ref: https://moodle.org/mod/forum/discuss.php?d=431946.

      When highlighting a section, the 'current' class is no longer applied to the section as it was before in M3.11-.

      Suggested fix is to add '$data->iscurrent = true;' to 'export_for_template()' of '/course/format/classes/output/local/content/section.php' when '($format->is_section_current($thissection))' is true.  Or change '/course/format/templates/local/content/section.mustache' to use 'highlighted' instead of 'iscurrent' on the section 'li' tag.

        1. Screenshot 2022-02-17 153032.png
          Screenshot 2022-02-17 153032.png
          10 kB
        2. Screenshot 2022-02-17 153126.png
          Screenshot 2022-02-17 153126.png
          11 kB
        3. Screenshot 2022-02-17 at 09.06.44.png
          Screenshot 2022-02-17 at 09.06.44.png
          110 kB
        4. Screenshot 2022-02-17 at 09.12.12.png
          Screenshot 2022-02-17 at 09.12.12.png
          82 kB
        5. Step 5_Boost.PNG
          Step 5_Boost.PNG
          47 kB
        6. Step 5_Classic.PNG
          Step 5_Classic.PNG
          62 kB
        7. Step 7_Boost.PNG
          Step 7_Boost.PNG
          47 kB
        8. Step 7_Classic.PNG
          Step 7_Classic.PNG
          56 kB

            gb2048 Gareth J Barnard
            gb2048 Gareth J Barnard
            Bas Brands Bas Brands
            Jun Pataleta Jun Pataleta
            Gladys Basiana Gladys Basiana
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 25 minutes
                1h 25m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.