Change the color of the Submit button on the Table Action Modal
I have a Table Action that triggers a modal for further values to complete the action. Is there a way to change the color of the action buttons on the modal?
6 Replies
Here is the code for the modal
Add an extraAttribute class and change it in your css
https://filamentphp.com/docs/3.x/actions/trigger-button#adding-extra-html-attributes
Thanks, I did try using the
color
method on the action and that did change the color, but not sure if that is the right approach though.
called this method on the Action
As written here if you're using tailwind you can dirctly write the color in the extra attribute
or add a class and write the css for the class in your css file
It should work it's in the docs but limited colors
ok
@Abishek if you don't want to use custom css you could try the following approach: