Status Page | Corporate Tax and Trade: Esc key closes entire dialog instead of open dropdown

XMLWordPrintable

    • Severity 3 - Minor
    • Accessibility

      Issue Summary

      When the user presses the Esc key to close the "Country Code" dropdown, the entire dialog closes instead of just the dropdown.

      Test URL

      Env

      Steps to Reproduce

      1. Open the Corporate Tax and Trade page.
      2. Using a screen reader, activate the "Subscribe to updates" or "Subscribe" button.
      3. Navigate to and activate the "Subscribe via SMS" tab.
      4. Using the Tab key, navigate to the "Country Code" dropdown, then open it with Alt + Down Arrow (Windows) or Option + Down Arrow (macOS).
      5. Press the Esc key and observe that the entire dialog closes instead of just the open dropdown.

      Screen Recording

      Dropdown focus bug.mp4

      Actual Results

      When the user presses the Esc key to close the "Country Code" dropdown within the "Subscribe to updates" or "Subscribe to Incident" non-modal dialog, the entire dialog closes instead of just the dropdown.

      This results in a poor experience for both screen reader and keyboard-only users.

      Expected Results

      Ensure that pressing the Esc key closes only the currently open dropdown. It should not dismiss the parent dialog or interface. After the dropdown is closed, keyboard focus should return to the dropdown trigger element.

      In this case, update the script to ensure the Esc key closes only the active dropdown, not the entire dialog.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Environment

      MacBook Pro (16-inch, 2021)
      macOS Sequoia 15.5
      Operations - Windows11
      Chrome - Version 138.0.7204.184 (Official Build) (64-bit)
      Safari- Version 18.5
      JAWS- Version 2023
      NVDA- Version 2025.1.1
      VoiceOver - Version Latest

            Assignee:
            Sourabh Gupta
            Reporter:
            Chirag Goyal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: