© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
12 replies
Xiaohou

Filament color is not reactive

At first, i found out the badge color inside table doesn't update alone with the text.
For example, when the
status
status
value is changed from
activated
activated
to
deactivated
deactivated
, the text inside badge will update to the getLabel() value, however, the color of the badge stay the same. I thought it was an issue relating to badge.

The text column code:
Tables\Columns\TextColumn::make('status'),
Tables\Columns\TextColumn::make('status'),


The enum status code:
<?php

namespace App\Enums;

use Filament\Support\Contracts\HasColor;
use Filament\Support\Contracts\HasLabel;

enum UserStatus: string implements HasLabel, HasColor
{
    case Activated = 'activated';
    case Deactivated = 'deactivated';

    public function getLabel(): ?string
    {
        return match ($this) {
            self::Activated => 'activated',
            self::Deactivated => 'deactivated',
        };
    }

    public function getColor(): array|string
    {
        return match ($this) {
            self::Activated => 'success',
            self::Deactivated => 'danger',
        };
    }
}
<?php

namespace App\Enums;

use Filament\Support\Contracts\HasColor;
use Filament\Support\Contracts\HasLabel;

enum UserStatus: string implements HasLabel, HasColor
{
    case Activated = 'activated';
    case Deactivated = 'deactivated';

    public function getLabel(): ?string
    {
        return match ($this) {
            self::Activated => 'activated',
            self::Deactivated => 'deactivated',
        };
    }

    public function getColor(): array|string
    {
        return match ($this) {
            self::Activated => 'success',
            self::Deactivated => 'danger',
        };
    }
}


Upon some more troubleshooting, i realized all colors are not reactive.

Even when i have a method that dynamically return filament action, lets say
ban
ban
or
unban
unban
action, which has danger or success color. The dynamic action will update based on user status, however, the color of the action itself doesnt change.
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

Filament Reactive not Working
FilamentFFilament / ❓┊help
3y ago
badge color is not reactive on table
FilamentFFilament / ❓┊help
17mo ago
wizard is not reactive
FilamentFFilament / ❓┊help
3y ago
Select::maxItems() is not reactive?
FilamentFFilament / ❓┊help
3y ago