Toast behaviour


Topic: Toast behaviour

Roman Mzh pro premium priority asked 3 years ago

Expected behavior

A Provider and useToast hook that returns show

In a provider expired toasts should be automatically deleted from state and dom.

Actual behavior

enter image description here

toasts garbage

Resources (screenshots, code snippets etc.)


Roman Mzh pro premium priority answered 3 years ago

also:

  1. not possible to get rid of header => empty headerContent should call toast same as it was in mdb 4
  2. whiteCloseBtn prop does not work
  3. colored toast needs header and body to have text-white classes => toast shoul automatically set text color depending on bg color

Krzysztof Wilk staff answered 3 years ago

Hi!

Thanks for reporting these issues. We'll look at them closer before the next release :)

Keep coding!


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 1.0.0-beta6
  • Device: pc
  • Browser: chrome
  • OS: ubuntu
  • Provided sample code: No
  • Provided link: No
Tags