Change widget icon color
Is it possible to change the color on the widget icons ?
Solution:Jump to solution
You can add an extra attribute (class or id) to your stat widget and then use the child combinator ( > ), for instance:
```php
...
...
->extraAttributes([...
5 Replies
doesn't do anything đ¤
Here is the code fwiw
the underlying Blade component (
vendor/filament/widgets/resources/views/stats-overview-widget/stat.blade.php
:~45) has:
So the SVG has those colors more specifically set on it.
Not a lovely solution but it can be done: https://filamentphp.com/docs/3.x/support/style-customization#applying-styles-to-hook-classes
specifically:
BUT!! This is global :// so maybe worth a PR đSolution
You can add an extra attribute (class or id) to your stat widget and then use the child combinator ( > ), for instance:
I was hoping for something like
->iconColor(...)
but I guess not đ Thank you all for your time đââď¸