F
Filamentβ€’2mo ago
Husky110

Section Heading-Background-Color

Hi - Is it possible to change the background-color of a section-heading? I already tried the extraAttributes-way to add the section-danger-class (like it was in V2), but to no avail. Thanks
Solution:
yeah custom theme ```PHP Forms\Components\Section::make('Section') ->extraAttributes(['class' => 'nice'])...
Jump to solution
6 Replies
Tally
Tallyβ€’2mo ago
Do you want to style the whole section or only the heading? Using the
Forms\Components\Section::make('Section')
->extraAttributes(['style' => 'background-color: red'])
->schema([
Forms\Components\Section::make('Section')
->extraAttributes(['style' => 'background-color: red'])
->schema([
will style the whole section... you could use the extraAttributes to add a specific class and create a selector in your theme.css to target the header
Tally
Tallyβ€’2mo ago
No description
Husky110
Husky110β€’2mo ago
Thank you! Did you use the custom-theme for the heading there or something else?
Solution
Tally
Tallyβ€’2mo ago
yeah custom theme
Forms\Components\Section::make('Section')
->extraAttributes(['class' => 'nice'])
Forms\Components\Section::make('Section')
->extraAttributes(['class' => 'nice'])
.nice { @apply bg-blue-500 }
.nice .fi-section-header { @apply bg-red-500 rounded-t-lg }
.nice .fi-section-header .fi-section-header-heading { @apply text-white }
.nice { @apply bg-blue-500 }
.nice .fi-section-header { @apply bg-red-500 rounded-t-lg }
.nice .fi-section-header .fi-section-header-heading { @apply text-white }
Husky110
Husky110β€’2mo ago
Ah okay - Thank you! πŸ™‚
Want results from more Discord servers?
Add your server
More Posts
Execute filament commands inside a filament pluginHi, I am making a filament plugin which includes resources, models, relationmanagers, etc... Is theIs there a method to disable select row (checkbox) and display just the table with actions, filtersCurrently i'm hiding the checkbox prefixed with each row with css but is there an offical way to remexport notification message doesn't change base on localeAs we can see from image, I have translation file in `action/km/export` but on the notification listMultiple Modal IssueI stumbled upon an issue where I have multiple actions(opening modals). Whenever I open a modal, cloSQLSTATE[IMSSP]: Field 34 returned no data.Currently, I am facing an issue in displaying data from SQL Server. Why am I encountering an error lQuickly switching routes from panel nav, cause blank page or freezeswitching routes several times and quickly cause: in firefox: - blank page and this console error: "I have the navbar overlapping issue inside a resource with inbuilt database notification openmodalI have the navbar overlapping issue inside a resource with inbuilt database notification openmodalwhen using TrashedFilter Bulk actions disappearWhen using TrashedFilter, Bulk actions disappear, They show up again if TrashedFilter:make('another-HasManyThrough repeater relationI am having the following problem where I want to show results in a repeater from a hasManyThroug rehow to pass a variable to importer and use it inside getColumnsHi, I would like to pass a variable to an importer and use it inside the importer's getColumns funct