-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix(dialog): Closing Animations not running #433 #504
Conversation
Codecov Report
@@ Coverage Diff @@
## master #504 +/- ##
==========================================
+ Coverage 99.91% 99.92% +<.01%
==========================================
Files 59 59
Lines 2482 2502 +20
Branches 288 291 +3
==========================================
+ Hits 2480 2500 +20
Misses 2 2
Continue to review full report at Codecov.
|
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 all looks really good. A couple of quick notes, but that's it from me. Thanks for the great work!
I think the only thing remaining is to update the demo to remove the style="visibility: hidden"
attribute from the dialog elements. 😛
After that, LGTM 🤙
packages/mdc-dialog/foundation.js
Outdated
@@ -118,6 +128,18 @@ export default class MDCDialogFoundation extends MDCFoundation { | |||
} | |||
} | |||
|
|||
handleTransitionEnd_(ev) { |
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.
Ultra-nit: We usually call this evt
width: 100%; | ||
height: 100%; | ||
visibility: hidden; | ||
z-index: 2; |
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.
z-index
is set on line 54 as well. I believe this one is extraneous.
packages/mdc-dialog/mdc-dialog.scss
Outdated
@@ -131,7 +133,6 @@ $mdc-dialog-dark-theme-bg-color: #303030 !default; | |||
padding: 8px; | |||
} | |||
|
|||
// TODO: Replace with breakpoint variable |
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.
We would like to keep this comment in for now. //
style comments are stripped out in the compiled CSS, so this only really exists for us in dev. These will all be removed once #23 lands.
Hi @amsheehan
Martin |
@amsheehan could we get another review here? Also note that in the commit message body we need to change |
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.
Once the commit message is changed to BREAKING CHANGE:
this is good to merge.
Commit message changed. Martin |
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
* Official breaking changes from material-web-components material-components/material-components-web#504 material-components/material-components-web@5b5ea95 * Fix transition events in dialog
Closes #433
BREAKING CHANGE: