-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(dialog): fade-out animation when lazy loaded on popover overlays #4937
base: main
Are you sure you want to change the base?
Conversation
Branch previewReview the following VRT differencesWhen 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 |
Lighthouse scores
What is this?Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on Transfer Size
Request Count
|
Tachometer resultsChromecontextual-help permalinkbasic-test
dialog permalinkbasic-test
Firefoxcontextual-help permalinkbasic-test
dialog permalinkbasic-test
|
Pull Request Test Coverage Report for Build 11887314669Details
💛 - Coveralls |
import { alertDestructive } from './dialog.stories.js'; | ||
import { portrait } from './images.js'; | ||
import { disabledButtonDecorator } from './index.js'; | ||
|
||
const withOverlayDecorator = (story: () => TemplateResult): TemplateResult => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This decorator needs to be initialized. This will create problems in VRT tests
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
Did it pass in Desktop?
Did it pass in Mobile?
Did it pass in iPad?
Screenshots (if appropriate)
Before:
before.mov
After:
after.mov
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
.