mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Adding updates to custom color classes to parent and adding back deprecated class
This commit is contained in:
@@ -57,7 +57,8 @@
|
||||
'gray' => 'fi-color-gray',
|
||||
default => 'fi-color-custom',
|
||||
},
|
||||
// @deprecated `fi-btn-color-*` has been replaced with `fi-color-*`
|
||||
// @deprecated `fi-btn-color-*` has been replaced by `fi-color-gray` and `fi-color-custom`.
|
||||
is_string($color) ? "fi-btn-color-{$color}" : null,
|
||||
is_string($color) ? "fi-color-{$color}" : null,
|
||||
"fi-size-{$size->value}" => $size instanceof ActionSize,
|
||||
// @deprecated `fi-btn-size-*` has been replaced by `fi-size-*`.
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
},
|
||||
// @deprecated `fi-dropdown-header-color-*` has been replaced by `fi-color-gray` and `fi-color-custom`.
|
||||
is_string($color) ? "fi-dropdown-header-color-{$color}" : null,
|
||||
is_string($color) ? "fi-color-{$color}" : null,
|
||||
])
|
||||
}}
|
||||
>
|
||||
@@ -38,7 +39,6 @@
|
||||
'gray' => 'text-gray-400 dark:text-gray-500',
|
||||
default => 'text-custom-500 dark:text-custom-400',
|
||||
},
|
||||
is_string($color) ? "fi-color-{$color}" : null,
|
||||
])
|
||||
@style([
|
||||
\Filament\Support\get_color_css_variables(
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
'gray' => 'fi-color-gray',
|
||||
default => 'fi-color-custom',
|
||||
},
|
||||
is_string($color) ? "fi-color-{$color}" : null,
|
||||
]);
|
||||
|
||||
$labelClasses = \Illuminate\Support\Arr::toCssClasses([
|
||||
@@ -79,7 +80,6 @@
|
||||
default => 'text-custom-600 dark:text-custom-400',
|
||||
} => ! $labelSrOnly,
|
||||
'sr-only' => $labelSrOnly,
|
||||
is_string($color) ? "fi-color-{$color}" : null,
|
||||
]);
|
||||
|
||||
$labelStyles = \Illuminate\Support\Arr::toCssStyles([
|
||||
|
||||
Reference in New Issue
Block a user