Closed mizgaionutalexandru closed 6 days ago
When a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
If the changes are expected, update the current_golden_images_cache
hash in the circleci config to accept the new images. Instructions are included in that file.
If the changes are unexpected, you can investigate the cause of the differences and update the code accordingly.
Category | Latest (report) | Main (report) | Branch (report) |
---|---|---|---|
Performance | 0.99 | 0.97 | 0.98 |
Accessibility | 1 | 1 | 1 |
Best Practices | 1 | 1 | 1 |
SEO | 1 | 0.92 | 0.92 |
PWA | 1 | 1 | 1 |
main
("Main"). Higher scores are better, but *note that the SEO scores on Netlify URLs are artifically constrained to 0.92.*
Category | Latest | Main | Branch |
---|---|---|---|
Total | 250.276 kB | 236.655 kB | 236.551 kB 🏆 |
Scripts | 60.614 kB | 54.294 kB | 54.128 kB 🏆 |
Stylesheet | 53.844 kB | 47.901 kB 🏆 | 48.003 kB |
Document | 6.214 kB | 5.468 kB | 5.468 kB |
Font | 126.782 kB | 126.641 kB | 126.604 kB 🏆 |
Category | Latest | Main | Branch |
---|---|---|---|
Total | 52 | 52 | 52 |
Scripts | 41 | 41 | 41 |
Stylesheet | 5 | 5 | 5 |
Document | 1 | 1 | 1 |
Font | 2 | 2 | 2 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
packages/dialog/src/DialogBase.ts | 21 | 26 | 80.77% | ||
<!-- | Total: | 21 | 26 | 80.77% | --> |
Totals | |
---|---|
Change from base Build 11859867829: | -0.01% |
Covered Lines: | 32346 |
Relevant Lines: | 32768 |
Good work here @mizgaionutalexandru. Let me know if we can land this now?
Description
This PR updates the moment of the
close
event dispatch from theDialogBase
to happen after all the component is done animating. If the transition duration is 0, the event will dispatch instantly as before.Related issue(s)
Motivation and context
Using a
DialogBase
inside a lazy-loaded overlay content would not always allow for the fade-out animations to complete. Unsure why this issue happens only with the popover overlay, but this fix seems more in line with the documentation stating that the close event "announces that the dialog has been closed".How has this been tested?
[ ] Test case 1
[ ] Test case 2
[x] Did it pass in Desktop?
[x] Did it pass in Mobile?
[x] Did it pass in iPad?
Screenshots (if appropriate)
Before:
https://github.com/user-attachments/assets/6b25d1bd-f382-4fe0-86b3-d36c48e295b1
After:
https://github.com/user-attachments/assets/cdddf104-eb57-48f7-ab5f-8aeb612b41f6
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.