Any way to set a custom notification icon color?

Using the ->iconColor() function seems to fail here:
<x-dynamic-component
:component="$icon"
:class="\Illuminate\Support\Arr::toCssClasses([
'filament-notifications-icon h-6 w-6',
match ($color) {
'success' => 'text-success-400',
'warning' => 'text-warning-400',
'danger' => 'text-danger-400',
'primary' => 'text-primary-400',
'secondary' => 'text-gray-400',
},
])"
/>
<x-dynamic-component
:component="$icon"
:class="\Illuminate\Support\Arr::toCssClasses([
'filament-notifications-icon h-6 w-6',
match ($color) {
'success' => 'text-success-400',
'warning' => 'text-warning-400',
'danger' => 'text-danger-400',
'primary' => 'text-primary-400',
'secondary' => 'text-gray-400',
},
])"
/>
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server