fix(toast): update toast design to match MD spec (#16323)

Updates the Material Design Toast to closer match the spec: https://material.io/design/components/snackbars.html

- Updates the animation to use opacity, not translate
- Updates design with the right background, box-shadow, etc.
- Fixes the broken position middle of toast and updates e2e test to include this
- Allows for line breaks to be passed in the message

fixes #16271
This commit is contained in:
Brandy Carney
2018-11-14 15:21:27 -05:00
committed by GitHub
parent adae8d4ad1
commit 188a63546a
16 changed files with 174 additions and 104 deletions

View File

@ -132,7 +132,7 @@ function getAppRoot(doc: Document) {
async function overlayAnimation(
overlay: OverlayInterface,
animationBuilder: AnimationBuilder,
baseEl: HTMLElement,
baseEl: any,
opts: any
): Promise<boolean> {
if (overlay.animation) {