Skip to content
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

feat: move toast css display outside of animation #631

Merged
merged 2 commits into from Mar 12, 2019
Merged

Conversation

scttcper
Copy link
Owner

seems to be caused by angular/angular#28911

closes #630

Repository owner deleted a comment from codecov bot Mar 12, 2019
@scttcper scttcper merged commit 720af1a into master Mar 12, 2019
@scttcper scttcper deleted the angular-7.2.8 branch March 12, 2019 18:07
@scttcper
Copy link
Owner Author

🎉 This PR is included in version 9.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

),
state('active', style({})),
state('inactive', style({ opacity: 0 })),
state('active', style({ opacity: 1 })),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this line also fix #602 & #605? From a quick test with bootstrap 4.3.1 cdn and the latest code (9.2.0) the toasts are showing up now without having to overwrite the css myself

Copy link
Collaborator

Choose a reason for hiding this comment

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

Guess it doesn't completely fix it. It's fixed when using the ToastComponent, but when using the ToastNoAnimation component the issue still exists.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think to fix it for ToastNoAnimation we'd want to apply something similar here:

@HostBinding('style.display')
get displayStyle() {
if (this.state === 'inactive') {
return 'none';
}
return 'inherit';
}

Instead of binding to "style.display" we could bind to just "style" and return both the display and opacity?

Copy link
Owner Author

Choose a reason for hiding this comment

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

i don't know if you can return an object there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toast does not show in aot, Angular v7.2.8
2 participants