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

Toast is display underneath the modals

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.10.1
    • Fix Version/s: None
    • Component/s: JavaScript
    • Labels:
      None
    • Affected Branches:
      MOODLE_310_STABLE

      Description

      The toast has z-index 1051 and was intended to be display on top of everything, but the modals have z-index 1052:

      z-index of .modal is defined in the CSS as 1050, however when modal is opened the index is recalculated to be the highest index plus 2:
      https://github.com/moodle/moodle/blob/master/lib/amd/src/modal.js#L592-L614
      https://github.com/moodle/moodle/blob/master/lib/amd/src/modal.js#L681

      then it becomes 1052

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            marina Marina Glancy
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: