F
Filament2mo ago
nowak

In a iconButton action, is it possible to make the iconSize larger than Large without using css?

I have this view action:
Tables\Actions\ViewAction::make()
->iconButton()
->size('xl'),
Tables\Actions\ViewAction::make()
->iconButton()
->size('xl'),
When setting ->size('xl'), this is macthed in the icon-button.blade.php to the icon size Large, which is h6 w6. This is a bit too small for comfortable touch usage, where the minimum size of h10 w10 is recommended. So is there a way to either add an extra attribute to the svg icon element, or set the size of the icon to 40px somehow? Or are we limited to the Filament\Support\Enums\IconSize enums?
2 Replies
Matthew
Matthew2mo ago
you'd need a custom theme, and then css the element svg.
nowak
nowakOP2mo ago
Yeah that's what I'm doing now
Want results from more Discord servers?
Add your server