Skip to content

Commit

Permalink
Merge pull request #18 from jeffgreco13/1.x-dev
Browse files Browse the repository at this point in the history
fix: Override OS dark mode setting
  • Loading branch information
jeffgreco13 authored Feb 11, 2022
2 parents 668aead + 840f3a4 commit 929e9dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/auth-card.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@props(['action'])
<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-white">
<div @class(['flex items-center justify-center min-h-screen bg-gray-100 text-gray-900','dark:bg-gray-900 dark:text-white' => config('filament.dark_mode')])>

@if(session()->has('notify'))
<x-filament::notification :status="session('notify.status')" :message="session('notify.message')" />
Expand Down
4 changes: 2 additions & 2 deletions resources/views/components/grid-section.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

<div class="col-span-2 sm:col-span-1 flex justify-between">
<div class="px-4 sm:px-0">
<h3 class="text-lg font-medium text-gray-900 dark:text-white">{{$title}}</h3>
<h3 @class(['text-lg font-medium text-gray-900','dark:text-white'=>config('filament.dark_mode')])>{{$title}}</h3>

<p class="mt-1 text-sm text-gray-600 dark:text-gray-100">
<p @class(['mt-1 text-sm text-gray-600','dark:text-gray-100'=>config('filament.dark_mode')])>
{{$description}}
</p>
</div>
Expand Down

0 comments on commit 929e9dd

Please sign in to comment.