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

Refactor .badge-[warning|info|...] and .badge-pill classes dropped in Bootstrap 5

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-80259-main
    • Hide

      Test "Plugin privacy compliance registry"

      1. Login as administrator
      2. Go to Site Administration > Users > Privacy and policies > Plugin privacy registry
      3. Confirm that the "Additional", "Deprecated" and "Userlist provider missing" badges are displayed as following:

      Test "Activity badges"

      1. Login as administrator
      2. Create a course and a user as student
      3. Go to the course and post a message in the "Announcements" Forum (Check "Send forum post notifications with no editing-time delay")
      4. Login as the student and go to User preferences > Forum preferences
      5. Set 'Forum tracking' = 'Yes: highlight new posts for me' and Save changes
      6. Navigate to the course
      7. Confirm that the "1 unread post" badge is displayed as following:

      Test "Server Enviroment"

      1. Login as administrator
      2. Go to Site Administration > Server > Enviroment
      3. Confirm that the "Ok"amd "Check" badges are displayed as following:
      Show
      Test "Plugin privacy compliance registry" Login as administrator Go to Site Administration > Users > Privacy and policies > Plugin privacy registry Confirm that the "Additional", "Deprecated" and "Userlist provider missing" badges are displayed as following: Test "Activity badges" Login as administrator Create a course and a user as student Go to the course and post a message in the "Announcements" Forum (Check "Send forum post notifications with no editing-time delay") Login as the student and go to User preferences > Forum preferences Set 'Forum tracking' = 'Yes: highlight new posts for me' and Save changes Navigate to the course Confirm that the "1 unread post" badge is displayed as following: Test "Server Enviroment" Login as administrator Go to Site Administration > Server > Enviroment Confirm that the "Ok"amd "Check" badges are displayed as following:
    • 2
    • HQ 2023 Sprint I4.3 Moppies

      In BS5 the .badge-[warning|info|...] classes have been dropped.
      They should be replaced with .bg-[warning|info|...].Note that for light badge backgrounds "text-dark" should be also included (https://getbootstrap.com/docs/5.0/components/badge/#background-colors)
      Also, badge-pill class has been dropped and should be replaced with .rounded-pill
       
      We can refactor the usages in advance without waiting for the BS 5 upgrade

      https://getbootstrap.com/docs/5.2/migration/:

      Dropped all .badge-* color classes for background utilities (e.g., use .bg-primary instead of .badge-primary).
      Dropped .badge-pill—use the .rounded-pill utility instead.

      Refactor all the occurrences in the codebase.

      Based on MDL-80259_search.pl

        1. (1) Passed -- (Main)MDL-80259.png
          (1) Passed -- (Main)MDL-80259.png
          73 kB
        2. (2) Passed -- (Main)MDL-80259.png
          (2) Passed -- (Main)MDL-80259.png
          39 kB
        3. (3) Passed -- (Main)MDL-80259.png
          (3) Passed -- (Main)MDL-80259.png
          119 kB
        4. MDL-80259_search.pl
          56 kB
        5. screenshot-1.png
          screenshot-1.png
          48 kB
        6. screenshot-2.png
          screenshot-2.png
          10 kB
        7. screenshot-3.png
          screenshot-3.png
          64 kB

            mikelmartíncorrales Mikel Martín Corrales
            mikelmartíncorrales Mikel Martín Corrales
            Laurent David Laurent David
            Amaia Anabitarte Amaia Anabitarte
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 1 hour, 22 minutes
                3d 1h 22m

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