Prymiee
Change widget icon color
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 🙂9 replies
Autofocus only when on desktop & action is create
mount
method, inject the Illuminate\Http\Request
and set the variable on the component itself with an attribute like Locked
(https://livewire.laravel.com/docs/locked)autofocus
closure.16 replies
Autofocus only when on desktop & action is create
Not sure about how to achive the desktop determination (maybe you could check via the user-agent or defer to a package like: https://github.com/phattarachai/laravel-mobile-detect)
As for implementation regarding the "create" action (https://filamentphp.com/docs/3.x/forms/advanced#injecting-the-current-form-operation):
16 replies