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
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 CSSUnfortunately 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
A custom CSS class with !important
ok. Thanks.
I think color is for text only, anyway