FilamentF
Filament15mo ago
Matthew

url styling with custom theme

I've added a custom theme and applied it to a specific panel. Without me adding any actual customisation, the action buttons that contain a url action like:

        Notification::make()
            ->title('Saved successfully')
            ->body(implode(' ', $notifications))
            ->success()
            ->seconds(9)
            ->actions([
                Action::make('ViewInvoice')
                    ->label('View/Pay Invoice')
                    ->button()
                    ->url(route('filament.customer.financial.resources.invoice.view', ['record' => $invoiceBase->ib_unique]), shouldOpenInNewTab: false),

            ])
            ->send();


..have styled the colour in the button to hyperlink colours.

Without custom theme:


With custom theme:

Any idea on how to prevent that?

This is a noptification action, but noticed the same on table action. The CSS on the element is identical, so it is something happening much further up.
image.png
image.png
Solution
Just realised why this was my fault, and not something happening in filament, thanks for suggestion anyway!"
Was this page helpful?