© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Mook

Custom row classes border colour weirdness

I'm using custom row classes to style my tables. https://filamentphp.com/docs/3.x/tables/advanced#custom-row-classes

->recordClasses(fn (Model $record) => match ($record->type) {
                'win' => 'border-s-8 border-green-900',
                'draw' => 'border-s-8 border-blue-900',
                'loss' => 'border-s-8 border-red-900',
               default => null,
            })
->recordClasses(fn (Model $record) => match ($record->type) {
                'win' => 'border-s-8 border-green-900',
                'draw' => 'border-s-8 border-blue-900',
                'loss' => 'border-s-8 border-red-900',
               default => null,
            })


However the border colour only ever applies to the very top row of the table. I can alter the border thickness and this will apply to all

I can add in a
bg-indigo-900
bg-indigo-900
to the CSS rows and this colour will apply to all rows. I'm stuck and can't figure out why the border colour is doing this?
borders.png
Advanced - Table Builder - Filament
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom row classes
FilamentFFilament / ❓┊help
2y ago
Custom column classes
FilamentFFilament / ❓┊help
2y ago
Custom Row Classes - How to assign a different background color to each row (Category)
FilamentFFilament / ❓┊help
3y ago
Custom Row Accordion
FilamentFFilament / ❓┊help
9mo ago