Color on Widget Card doesn't work.

Hello everybody. I'm making some custom widgets for a resource and when I apply a color to it it has no effect on the final page. Does anyone know how to resolve this?
5 Replies
Patrick Boivin
Do you want to change the background color? I'm not sure what ->color() does here... I think your best bet is probably to apply a custom class with ->extraAttributes(['class' => 'my-custom-class']) and add a bit of CSS
joao nivaldo
joao nivaldoOP2y ago
Unfortunately it doesn't work using extraAttributes. His default class takes precedence over mine. See, by default it has bg-white and I tried to put bg-gray-500 and it didn't work. Do you have any suggestions for this? Thanks
Patrick Boivin
A custom CSS class with !important
joao nivaldo
joao nivaldoOP2y ago
ok. Thanks.
Dennis Koch
Dennis Koch2y ago
I think color is for text only, anyway
Want results from more Discord servers?
Add your server