Adding updates to custom color classes to parent and adding back deprecated class

This commit is contained in:
Tony Lea
2024-02-18 18:27:09 -05:00
parent 9656cb9636
commit 7197bebb20
3 changed files with 4 additions and 3 deletions
@@ -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([