F
Filament16mo ago
Scott

Setting section background color

Hi guys, is there a simple "Filament" way to set the background color of section? In the screenshot I would like to make the background of the entire "You're almost done" section the "primary" color
Solution:
->extraAttributes(['style' => 'background-color:#color'])
->extraAttributes(['style' => 'background-color:#color'])
?...
Jump to solution
5 Replies
Solution
LeandroFerreira
LeandroFerreira16mo ago
->extraAttributes(['style' => 'background-color:#color'])
->extraAttributes(['style' => 'background-color:#color'])
?
Scott
ScottOP16mo ago
nice! that worked, thanks
sotjj
sotjj11mo ago
Is there a way to have the background color only apply to the Section heading and not the fields?
Tobias Platen
Tobias Platen11mo ago
As far as I can see, this will only work globally for all section headers via styling of .fi-section-header. https://filamentphp.com/docs/3.x/support/style-customization#applying-styles-to-hook-classes
sotjj
sotjj11mo ago
Thanks! For my situation, this might work. I will try it out and report back. Thank you, again. That will work for me.
Want results from more Discord servers?
Add your server