-
Notifications
You must be signed in to change notification settings - Fork 39
feat(toast): toast service implementation (#UIM-829) #731
base: master
Are you sure you want to change the base?
Conversation
} | ||
|
||
ngOnInit(): void { | ||
this.intervalId = setTimeout(() => this.animationState = 'closing', this.toast.duration); |
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.
по возможности нужно избегать setTimout... в других компонентах есть примеры с запуском анимации, посмотри, возможно получиться улучшить.
new colors for links
8e3cee4
to
53b5329
Compare
…ID-1108 # Conflicts: # packages/docs/src/styles/default-theme/_variables.scss # packages/docs/src/styles/default-theme/css-tokens.css # packages/docs/src/styles/default-theme/tokens.ts # packages/docs/src/styles/green-theme/_variables.scss # packages/docs/src/styles/green-theme/css-tokens.css # packages/docs/src/styles/green-theme/tokens.ts # packages/docs/src/styles/red-theme/_variables.scss # packages/docs/src/styles/red-theme/css-tokens.css # packages/docs/src/styles/red-theme/tokens.ts # packages/docs/src/styles/yellow-theme/_variables.scss # packages/docs/src/styles/yellow-theme/css-tokens.css # packages/docs/src/styles/yellow-theme/tokens.ts # packages/mosaic-dev/toast/module.ts # packages/mosaic-dev/toast/template.html # packages/mosaic/design-tokens/legacy-2017/_variables.scss # packages/mosaic/design-tokens/legacy-2017/css-tokens.css # packages/mosaic/design-tokens/legacy-2017/tokens/components/checkbox.json5 # packages/mosaic/design-tokens/legacy-2017/tokens/components/navbar.json5 # packages/mosaic/design-tokens/legacy-2017/tokens/components/tags.json5 # packages/mosaic/design-tokens/tokens.ts # packages/mosaic/toast/toast-container.component.ts # packages/mosaic/toast/toast.component.html # packages/mosaic/toast/toast.component.scss # packages/mosaic/toast/toast.component.ts # packages/mosaic/toast/toast.module.ts # packages/mosaic/toast/toast.service.ts # packages/mosaic/toast/toast.type.ts
Preview docs changes for b516a86 at https://positive-js.github.io/mosaic-previews/pr731-b516a86/ |
@agalaktionov нужен список токенов или хотя бы примерное понимание какие параметры мы собираемся настраивать через токены. Так же обрати внимание на анимацию, возможно ее тоже нужно будет подправить. |
Kudos, SonarCloud Quality Gate passed! |
Preview docs changes for 57a1695 at https://positive-js.github.io/mosaic-previews/pr731-57a1695/ |
|
||
export type McToastStyle = 'default' | 'confirm' | 'custom' | 'success' | 'error' | 'warning' | 'info'; | ||
export enum McToastPosition { | ||
TOP_RIGHT = 'top-right', |
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.
@lskramarov возможно использовать позиции, которые использовались в popover?
@lskramarov гайд по тостам пока в работе, можно ли по временить пока с параметрами для токенов? |
@vladimirverbitski синхронизируй с master веткой |
сделано |
No description provided.