-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
High
-
Component/s: Subscribers - SMS
-
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
Steps to Reproduce
- Open the Corporate Tax and Trade page.
- Using a screen reader, activate the "Subscribe to updates" or "Subscribe" button.
- Navigate to and activate the "Subscribe via SMS" tab.
- Using the Tab key, navigate to the "Country Code" dropdown, then open it with Alt + Down Arrow (Windows) or Option + Down Arrow (macOS).
- Press the Esc key and observe that the entire dialog closes instead of just the open dropdown.
Screen Recording
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