Skip to content

[Dialog] Close contextual elements with the Esc key in visual order #6456

@geospatialem

Description

@geospatialem

Description

Provide similar behavior to keyboard functionality to mouse users where if multiple modal dialogs are opened, the Esc key provides similar functionality to when selecting the components close button.

cc @Anastasiia-Boleiko

Acceptance Criteria

If multiple modal dialog windows are open and the Esc key is pressed, the most recently opened (highest order, or visually prominent) should be closed first. The order should follow until the last dialog is closed.

Relevant Info

Came up in #6292 as a nice to have, but was out of scope for the bug fix.

Which Component

modal

Example Use Case

https://codepen.io/anastasiia-zrh/pen/MWBvZdB

Esri team

ArcGIS Urban

Metadata

Metadata

Labels

4 - verifiedIssues that have been tested, confirmed as mitigated, and are ready to close.ArcGIS Business/Community AnalystIssues logged by ArcGIS Business/Community Analyst team members.ArcGIS UrbanIssues logged by ArcGIS Urban team members.Calcite (dev)Issues logged by Calcite developers.a11yIssues related to Accessibility fixes or improvements.enhancementIssues tied to a new feature or request.estimate - 8Requires input from team, consider smaller steps.p - mediumIssue is non core or affecting less that 60% of people using the libraryspikeIssues that need quick investigations for time estimations, prioritization, or a quick assessment.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions