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:Jump to solution
Fixed in this PR https://github.com/filamentphp/filament/pull/7905
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 ...
4 Replies
Issues like this should probably be reported on Github instead
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
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/buttonSolution
Fixed in this PR https://github.com/filamentphp/filament/pull/7905
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 ...