You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varnotyf=newNotyf({types: [{type: 'info',background: 'blue',icon: {className: 'material-icons',tagName: 'i',text: 'info'}},{type: 'warning',background: 'orange',icon: {className: 'material-icons',tagName: 'i',text: 'warning'}},]});// Function to show the success messagefunctionshowMessage(msgtype,msg){varshowMsg=document.getElementById("showMsg");// Check if the success message should be displayedif(showMsg.dataset.display!=='false'){// Use Notyf for displaying success messageif(msgtype=='success'){notyf.success({message: msg,duration: 9500,dismissible: true});}elseif(msgtype=='warn'){notyf.open({type: "warning",message: msg,duration: 9500,dismissible: true});}elseif(msgtype=='info'){notyf.open({type: "info",message: msg,duration: 9500,dismissible: true});}elseif(msgtype=='error'){notyf.error({message: msg,duration: 9500,dismissible: true});}}}
The issue is, that the icons are not displayd correctly (only if you select everything on a notification modal, you see the icon. Otherwise it won't display.
The text was updated successfully, but these errors were encountered:
Hey, I know you probably moved on or figured it out,
but maybe someone else will find it useful, because I had the same problem and then i realized you need to set the color of the icon, as mentioned in the readme
Icon color. It must be a valid CSS color value. Defaults to background color.
So the notification is basically shown flush with the background.
If you set the color, for example like this:
Hello, so let's get straight to the point:
The issue is, that the icons are not displayd correctly (only if you select everything on a notification modal, you see the icon. Otherwise it won't display.
The text was updated successfully, but these errors were encountered: