F
Filament2mo ago
nathan

Increase Opacity of Notifications

The transparency of the notifications is too much. Is there a way to increase the opacity? The notifications are muddled when there is text behind it.
No description
4 Replies
Dennis Koch
Dennis Koch2mo ago
That's a bug and not intended. Might be on your site though. Any custom styles or overwritten views? Maybe a plugin?
nathan
nathanOP2mo ago
It started when I went to v4. I don't have any plugins that effect notification styling. I don't use any custom styles or overwritten views. @Dennis Koch I'm not registering any custom colors. I'm not sure why this is happening. Someone else is posting about this. https://discord.com/channels/883083792112300104/1414953120173129879 This only happens when I'm in dark mode. In light mode, there is no transparency. @Dennis Koch It looks like if I remove the call to the ->color('primary') method on the Notification::make, then there isn't an issue with opacity. Again, I'm not doing any FilamentColor::register() in my app.
Dennis Koch
Dennis Koch2mo ago
Thanks. I can reproduce it. It's a bug. I'll open a PR to fix this
Dennis Koch
Dennis Koch2mo ago
GitHub
fix: Notification background dark mode by pxlrbt · Pull Request #1...
Description When using ->color('primary') on notifications, they show with a transparent background in dark mode. Visual changes No ->color(), solid background: -&amp...

Did you find this page helpful?