Skip to content

Commit 09153f1

Browse files
authored
Merge pull request #17 from pxlrbt/feature/filament-v4
Use get_color_css_variables() method
2 parents dd86b0b + 8d4acc8 commit 09153f1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

resources/views/badge.blade.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
@php use Filament\Facades\Filament; @endphp
1+
@php
2+
use function Filament\Support\get_color_css_variables;
3+
@endphp
24
<div
35
class="
46
environment-indicator
57
fi-badge fi-color fi-text-color-600
68
dark:fi-text-color-400
79
"
8-
style="
9-
--color-50: {{ $color[50] }};
10-
--color-300: {{ $color[300] }};
11-
--color-400: {{ $color[400] }};
12-
--color-600: {{ $color[600] }};
13-
"
10+
style="{{ get_color_css_variables($color, [50, 300, 400, 600]) }}"
1411
>
1512
{{ $environment }}
1613

0 commit comments

Comments
 (0)