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] White bar at top of custom alert #217

Closed ShawnDoe closed 1 year ago

ShawnDoe commented 1 year ago

Describe the bug There is a white bar along the top of the custom toast. I saw this on my own project then confirmed it on the project downloaded from here. To Reproduce Steps to reproduce the behavior: Download the sample project here. Run it. Choose Custom Toast. See white bar along the top of the toast. Expected behavior I cannot override whatever this is and I would expect to be able to remove it.

Screenshots image

Hosting Model (is this issue happening with a certain hosting model?):

Additional context

Cvijo commented 1 year ago

A workaround would be to add CSS to override blazored-toast with {border-top:0px;} on your custom component

haakonfp commented 1 year ago

A workaround would be to add CSS to override blazored-toast with {border-top:0px;} on your custom component

This worked for me, just needed the !important tag as well. I added the following to my css file to avoid the top border and the unrounded edges:

.blazored-toast {
    border-top: 0px!important;
    border-radius: 1rem!important;
}
taylorchasewhite commented 1 year ago

Same