filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
19.32k stars 2.97k forks source link

Dark Mode Inconsistency: Streaks of Varying Darkness around Elements and Half of Dashboard Screen in Chromium Browsers #7759

Closed andrewdwallo closed 1 year ago

andrewdwallo commented 1 year ago

Package

filament/filament

Package Version

v3.0.21

Laravel Version

v10.18.0

Livewire Version

v3.0.0-beta.7

PHP Version

PHP 8.2.8

Problem description

While using dark mode in an application using Filament, I noticed some inconsistencies in the display. Specifically, half of the screen and areas around certain elements exhibit different shades of darkness, resulting in noticeable streaks. This issue affects the overall visual appearance and user experience. This bug is only present in Chromium Browsers (Edge and Chrome) and not Safari. I have not tried Firefox or other browsers.

Chrome:

Screenshot 2023-08-14 at 5 33 09 PM

Edge:

Screenshot 2023-08-14 at 5 32 42 PM

Edge:

Screenshot 2023-08-12 at 9 53 38 PM

Safari:

Screenshot 2023-08-14 at 5 33 47 PM

Expected behavior

The dark mode should provide a consistent color scheme, with uniform shades of darkness across all elements and areas of the screen in most if not all browsers. Chrome and Edge are very popular browsers which is why I'm surprised this has not been addressed recently by anyone. I have no extensions in both Chromium browsers. I actually just got a new computer and just downloaded both browsers recently.

Steps to reproduce

Steps:

  1. Use any Chromium Browser (Edge or Chrome)
  2. Download reproduction repository (or any repository should do).
  3. Navigate to any page in Filament.
  4. Enable dark mode.
  5. Observe the streaks of varying darkness around elements (or half the screen in the panel).

Reproduction repository

https://github.com/andrewdwallo/company

Relevant log output

No response

199ocero commented 1 year ago

I've got this issue too since I'm using edge browser like half bottom part is more darker than the upper part.

andrewdwallo commented 1 year ago

@199ocero Yeah I'm not sure how this could be fixed on their side.

danharrin commented 1 year ago

I'm sorry, but I don't know how we can even fix this within Filament? If you have any ideas, go PR, but I don't think it's worth keeping this issue open as there is nothing actionable really?

andrewdwallo commented 1 year ago

@danharrin It just kind of sucks because it's such a noticeable thing and affects the entire view to the user. I will try to do some research and see if anything can be fixed here.