recordClasses() is only correctly applied to the first entry of a Table
https://filamentphp.com/docs/3.x/tables/advanced#custom-row-classes
Calling this fn in the table view leads to only style the first row correctly - every other row falls back to default even the returns are true
4 Replies
Solution: The CSS is overwritten by filament css. Therefore it needs to be important.
!border-l-4 !border-red-600
This was a huge help!! Thank you!
Hello @max_dev Can you please tell me why I can't get the table rows text turned into red???
I tried the exclamation trick but it didn't work.
Here is my code:
I installed tailwind css, but I don't want to create a new theme to use it. I only want to color the rows if the above condition is true.
Here is my tailwind.config.js content
my postcss.config.js
my app.css