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

Notifications should not steal focus if the user has interacted with the page

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.4, 3.6.2, 3.7
    • Fix Version/s: None
    • Component/s: Accessibility, JavaScript
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE

      Description

      We now change focus to notifications on page load, but this can cause focus change when the user has already started to interact with the page.

      I suspect that we need to change our rules around focus to be less greedy such that we only change focus if the document.activeElement is the document.body.

      We may need to check if the screenreader changes the initial active element on page load, etc.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dobedobedoh Andrew Nicols
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: