ironmansoftware / universal-dashboard

Build beautiful websites with PowerShell.
https://universaldashboard.io
GNU Lesser General Public License v3.0
449 stars 83 forks source link

Show-UDToast does not display icon #1323

Open cpurules opened 4 years ago

cpurules commented 4 years ago

Describe the Issue

When using the -Icon and -IconColor parameters on the Show-UDToast cmdlet, the icons do not appear as part of the toast. The toast element appears to make the space for the icon, but does not actually display an icon.

To Reproduce

Steps to reproduce the behavior:

Call the Show-UDToast cmdlet and use the -Icon (and, optionally, -IconColor) parameter(s)

Expected behavior

The toast message shows an icon in the message

Screenshots

image

Script Sample

$Dashboard = New-UDDashboard -Title "Toast Icon Issue Demo" -Content {
    New-UDButton -Text "Click me to show a toast!" -OnClick {
        Show-UDToast -Message "Success!" -Icon check_circle -IconColor green -Duration 10000
    }
}

Start-UDDashboard -Dashboard $Dashboard -Port 10001

Version Information

Additional context

It looks like UD is generating the correct HTML and applying the styles for the icon successfully, it's just not displaying:

image

I am using Chrome v78.0.3904.97

adamdriscoll commented 4 years ago

This issue has been mentioned on Ironman Software Forums. There might be relevant details there:

https://forums.universaldashboard.io/t/help-plan-the-future-of-universal-dashboard/2176/2