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

@ -28,9 +28,12 @@ export class Toast implements ComponentInterface, OverlayInterface {
animation: Animation | undefined;
@Prop({ connect: 'ion-animation-controller' }) animationCtrl!: HTMLIonAnimationControllerElement;
@Prop({ context: 'config' }) config!: Config;
/** @internal */
/**
* @internal
*/
@Prop() overlayIndex!: number;
/**