Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Incorrect background/text color in Selectable Header on dark theme (Chrome) #1344

Open
3 tasks done
lopatin96 opened this issue Mar 18, 2025 · 4 comments
Open
3 tasks done

Comments

@lopatin96
Copy link

Flux version

v2.0.6

Livewire version

v3.6.2

Tailwind version

v.4.0.0

Browser and Operating System

Chrome on windows

What is the problem?

There is a visual issue with the <flux:calendar selectable-header /> component in Google Chrome (dark mode).

In the light theme, the background/text color appears correctly.
In the dark theme, the background/text color is incorrect, making it impossible to see.

Steps to Reproduce:

  1. Open the component in Google Chrome.
  2. Switch between light and dark themes.

Image
Image

Observe the text color in the dark theme.

Code snippets

<flux:calendar selectable-header />

How do you expect it to work?

The <flux:calendar selectable-header /> text should have sufficient contrast in both light and dark themes.

  1. In the light theme, the text color is correct and easily readable.
  2. In the dark theme, the text color should adjust properly to maintain readability against the dark background.
  3. Ideally, the text color in the dark theme should match the expected styling, ensuring clear visibility without blending into the background.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.
@jeffchown
Copy link

@lopatin96 It renders properly for me in both modes.

Have you run npm run build and php artisan view:clear and cleared your browser cache?

Are you using the Laravel 12 starter kit?

@lopatin96
Copy link
Author

@jeffchown I took these photos while reviewing the documentation (https://fluxui.dev/components/calendar). The issue only occurred on Windows. I'm now testing on Mac, and everything looks fine.

Tomorrow, I'll test again on Windows (after clearing the cache) and let you know if the issue persists.

@jeffchown
Copy link

@lopatin96 Gotcha. Sounds good.

@joshhanley
Copy link
Member

@lopatin96 thanks for reporting! I was sure I had fixed this issue. Turns out I had, for date-picker but not the calendar 🤦‍♂️ I've submitted a PR with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants