diff --git a/src/resources/views/crud/fields/switch.blade.php b/src/resources/views/crud/fields/switch.blade.php index 07097af947..e110fedd72 100644 --- a/src/resources/views/crud/fields/switch.blade.php +++ b/src/resources/views/crud/fields/switch.blade.php @@ -3,7 +3,7 @@ $field['value'] = old_empty_or_null($field['name'], '') ?? $field['value'] ?? $field['default'] ?? '0'; $field['onLabel'] = $field['onLabel'] ?? ''; $field['offLabel'] = $field['offLabel'] ?? ''; - $field['color'] = $field['color'] ?? 'primary'; + $field['color'] = $field['color'] ?? 'var(--bg-switch-checked-color)'; @endphp {{-- Wrapper --}} @@ -14,7 +14,7 @@