F
Filament16mo ago
ILPAV

Bug: Action button wrong background when disabled

Problem description When applying the ->disabled() function to one of the default Actions or a custom CreateAction the resulting button cannot be clicked and does not trigger the pointer cursor as expected, but it still present the default attributes. In fact, the opacity stays full and when hovering the background color still changes. With table actions (Tables\Actions\) this behavior is working correctly as shown in the image. Expected behavior The button opacity should be set to 70% with no background color change on hover. Steps to reproduce On any ListRecords page add ->disabled() to the default CreateAction.
Solution:
GitHub
Fixing button disabled styling by ilpav12 · Pull Request #7905 · fi...
Changes have been thoroughly tested to not break existing functionality. Fix for issue #7827. This is a naive fix to the styling that adds classes containing :hover only when the button component ...
Jump to solution
4 Replies
Patrick Boivin
Patrick Boivin16mo ago
Issues like this should probably be reported on Github instead
josef
josef16mo ago
Probably quicker to create a PR than a bug report 😄 But if you open an issue, link it here, I might be motivated to fix this
ILPAV
ILPAVOP16mo ago
yeah probably, I think the solution is to prepand the active: directive before the :hover classes in the .blade.php inside this folder packages/support/resources/views/components/button
Solution
ILPAV
ILPAV16mo ago
GitHub
Fixing button disabled styling by ilpav12 · Pull Request #7905 · fi...
Changes have been thoroughly tested to not break existing functionality. Fix for issue #7827. This is a naive fix to the styling that adds classes containing :hover only when the button component ...
Want results from more Discord servers?
Add your server