Skip to content

Commit bea7e96

Browse files
Refactor icon class assignment in simple-alert component
1 parent ece4b49 commit bea7e96

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

resources/views/components/simple-alert.blade.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
$colors = \Illuminate\Support\Arr::toCssStyles([
2020
get_color_css_variables($color, shades: [50, 100, 400, 500, 700, 800]),
2121
]);
22+
23+
$iconClasses = \Illuminate\Support\Arr::toCssClasses([
24+
'h-5 w-5 text-custom-400',
25+
$iconAnimation,
26+
]);
2227
@endphp
2328

2429
<div x-data="{}"
@@ -35,7 +40,7 @@
3540
])>
3641
<x-filament::icon
3742
:icon="$icon"
38-
class="h-5 w-5 text-custom-400 {{ $iconAnimation }}"
43+
:class="$iconClasses"
3944
/>
4045
</div>
4146
@endif

0 commit comments

Comments
 (0)