Skip to content

fix(ui-a11y-utils): don't dismiss a region for a click it didn't see start - #2840

Open
aaronshaf wants to merge 1 commit into
masterfrom
fix/ui-a11y-utils-stacked-dialog-close
Open

aaronshaf wants to merge 1 commit into
masterfrom
fix/ui-a11y-utils-stacked-dialog-close

Conversation

@aaronshaf

@aaronshaf aaronshaf commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Test Plan

  • Open a Modal, then a second Modal from a button inside it. Click the close button in the second Modal and check the first stays open.
  • Open a Select inside a Modal, click elsewhere inside the Modal and check the Modal stays open.
  • Click the Mask of a lone Modal and check it still closes.

@aaronshaf
aaronshaf force-pushed the fix/ui-a11y-utils-stacked-dialog-close branch from 91acdd0 to 6936b57 Compare December 1, 2026 17:54
@aaronshaf aaronshaf self-assigned this Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2840/

Built to branch gh-pages at 2026-12-04 13:09 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@matyasf
matyasf requested review from balzss and matyasf December 2, 2026 12:43

@balzss balzss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @aaronshaf

…start

A dialog stacked on a Modal deactivates the Modal's FocusRegion. Closing the top dialog from a
button reactivates the region before the click reaches the document. #2753 judged that click by
its event path, found the target outside the Modal and dismissed the Modal too.

A region now ignores a click whose mousedown it didn't see. A click inside a Modal after a Select
inside it closes still doesn't dismiss. With a Select open, a click outside the Modal now closes
the Select first and the Modal on the next click.
@balzss
balzss force-pushed the fix/ui-a11y-utils-stacked-dialog-close branch from 6936b57 to 45e37e6 Compare December 4, 2026 13:06
github-actions Bot pushed a commit that referenced this pull request Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Visual regression report

Cypress suite: ✅ Passing

Visual diff: ⚠️ Changes detected.

Status Count
Unchanged 110
Changed 1
New 0
Removed 0

Accessibility (axe): ✅ No violations.

📊 View full report — click a screenshot's ⚠ badge to see each violation boxed on the image, with the offending element named and contrast failures shown as color swatches.

Diff images (1)

tooltip-light.png — 15266 pixels differ

Baselines come from the visual-baselines branch. They refresh on every merge to master. The Cypress suite line covers the a11y and console-error assertions — a ❌ there means the suite found real issues even if the visual diff is clean.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants