Our flexible Kanban board for managing tasks with drag drop


Post by stewart_wo »

We are using NgbToast to display notifications in our Angular application.

Image

HTML Code

<ngb-toast
  *ngFor="let toast of toastService.toasts" [class]="toast?.classname"
  [header]="toast.header" [autohide]="true" [delay]="toast.delay || 5000"
  (hidden)="toastService.remove(toast)"
<div [innerHTML]="toast.body"></div></ngb-toast>

CSS Code

:host {
  position: fixed;
  top: 0;
  right: 0;
  margin: 0.5em;
  z-index: 1200;
}


Post by alex.l »

Hi, I know nothing about ngb-toast, but DOM inspection showed me that modal mask has next CSS

.b-modal-mask {
    background-color: #64646480;
    position: fixed;
    inset: 0;
    pointer-events: all;
    z-index: 11001;
}

I believe you could try to set greater z-index for your toasts or override z-index for b-modal-mask class.

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post Reply