Skip to content

Conversation

keithamus
Copy link
Contributor

Authors: Please fill out this form carefully and completely.

Reviewers: By approving this Pull Request you are approving the code change, as well as its deployment and mitigation plans.
Please read this description carefully. If you feel there is anything unclear or missing, please ask for updates.

What are you trying to accomplish?

While the prior fix in 6cc198512c worked to keep the dialog open, because it called showPopover to open the ancestral popovers, they ended up on the top of the stack, rather than underneath the dialog. This means while the dialog was open, in certain resolutions it can be occluded by its ancestral popups.

This new fix instead changes the popovers to be manually controlled, meaning they won't participate in the "hide all popovers" algo, meaning they won't close when the dialog is open. When the dialog closes we turn them back onto auto so that they can continue to have the auto behaviours such as click-outside, escape, etc.

Screenshots

See new VRT generated previews

Integration

No

List the issues that this change affects.

Closes # (type the GitHub issue number after #)

Risk Assessment

  • Low risk the change is small, highly observable, and easily rolled back.
  • Medium risk changes that are isolated, reduced in scope or could impact few users. The change will not impact library availability.
  • High risk changes are those that could impact customers and SLOs, low or no test coverage, low observability, or slow to rollback.

What approach did you choose and why?

Anything you want to highlight for special attention from reviewers?

Accessibility

  • Fixes axe scan violation - This change fixes an existing axe scan violation.
  • No new axe scan violation - This change does not introduce any new axe scan violations.
  • New axe violation - This change introduces a new axe scan violation. Please describe why the violation cannot be resolved below.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews (Lookbook)
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@keithamus keithamus requested a review from a team as a code owner February 2, 2024 11:47
@keithamus keithamus requested review from a team and jonrohan February 2, 2024 11:47
Copy link

changeset-bot bot commented Feb 2, 2024

🦋 Changeset detected

Latest commit: 4579ac4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Feb 2, 2024

⚠️ Visual differences found

Our visual comparison tests found UI differences. Please review the differences by viewing the files changed tab to ensure that the changes were intentional.

Review visual differences

While the prior fix in `6cc198512c` worked to keep the dialog open,
because it called showPopover to open the ancestral popovers, they ended
up on the top of the stack, rather than underneath the dialog. This
means while the dialog was open, in certain resolutions it can be
occluded by its ancestral popups.

This new fix instead changes the popovers to be manually controlled,
meaning they won't participate in the "hide all popovers" algo, meaning
they won't close when the dialog is open. When the dialog closes we turn
them back onto auto so that they can continue to have the auto
behaviours such as click-outside, escape, etc.
@keithamus keithamus force-pushed the fix-layering-issues-with-dialog-popover-hack branch from c81ca0a to f4b64dc Compare February 2, 2024 18:59
@keithamus keithamus force-pushed the fix-layering-issues-with-dialog-popover-hack branch from 1a81705 to 2007ba3 Compare February 3, 2024 12:12
@keithamus keithamus deleted the fix-layering-issues-with-dialog-popover-hack branch February 3, 2024 14:36
@primer primer bot mentioned this pull request Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants