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

Make it possible to style toast notifications

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Testing new features:

      1. Download block_mdl71089.zip block and install it
      2. Add the block to the dashboard
      3. Test different notification options in the block
        1. Check "Show standard Toast" autohides
        2. Check any other "Show ... Toast" notification closes when clicking "X" right button

      Testing no-regression:

      1. Create a new course
      2. Access to participants page
      3. Enrol a new participant
      4. Check that "1 enrolled users" notification is shown
         
      Show
      Testing new features: Download  block_mdl71089.zip block and install it Add the block to the dashboard Test different notification options in the block Check "Show standard Toast" autohides Check any other "Show ... Toast" notification closes when clicking "X" right button Testing no-regression: Create a new course Access to participants page Enrol a new participant Check that "1 enrolled users" notification is shown  
    • Affected Branches:
      MOODLE_311_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull from Repository:
    • Pull 3.11 Branch:
      MDL-71089-311
    • Pull Master Branch:
      MDL-71089-master

      Description

      It would be good to have the possibility to add some styling to the toast notifications.

      I would approach it adding an extra configuration parameter in toast like "type: info/danger/warning/success". Then notification colors could be changed and an icon added.

       

       

        Attachments

          Activity

            People

            Assignee:
            mikelmartíncorrales Mikel Martín Corrales
            Reporter:
            mikelmartíncorrales Mikel Martín Corrales
            Peer reviewer:
            Paul Holden Paul Holden
            Integrator:
            Víctor Déniz Falcón Víctor Déniz Falcón
            Tester:
            Gladys Basiana Gladys Basiana
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Bas Brands
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/May/21

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours, 15 minutes
                7h 15m