Blazored / Toast

A JavaScript free toast library for Blazor and Razor Component applications
https://blazored.github.io/Toast/
MIT License
654 stars 90 forks source link

[Bug] Aditional CSS Classes missing in 4.1.0 #235

Open Shannon-roos opened 9 months ago

Shannon-roos commented 9 months ago

The additional style classes (SuccessClass, ErrorClass etc) don't appear to be working in versions 4+

After updating a project from 3.2.2 to 4.1.0 the custom SuccessClass tags are not applied to the DOM objects when rendered and any styles are not applied.

On a project with 3.2.2 the DOM has the custom CSS class, image

On 4.1.0, the custom CSS class is not included,

image

If I download the latest sample and run the server\webassembly versions its fine. If I switch either out to the nuget version 4.1.0 then the CSS tags are not applied anymore...

Issue #207 included in 4.10 lists to have fixed this however in the 4.1.0 release on nuget the issue is still there.

Am I missing something? Happy to be told I'm crazy if I have?

chrissainty commented 6 months ago

I've tried adding some classes to the ToastSettings.AdditionalStyles property and they seem to be showing as expected. Can you confirm if this is still an issue?