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

Stats overview widget charts randomly change color when resizing browser #13518

Closed
ryanmortier opened this issue Jul 9, 2024 · 1 comment · Fixed by #13567
Closed

Stats overview widget charts randomly change color when resizing browser #13518

ryanmortier opened this issue Jul 9, 2024 · 1 comment · Fixed by #13567
Milestone

Comments

@ryanmortier
Copy link

ryanmortier commented Jul 9, 2024

Package

filament/filament

Package Version

v3.2.92

Laravel Version

v11.14.0

Livewire Version

v3.5.2

PHP Version

PHP 8.2.21

Problem description

When using stat widgets, the chart color will load fine on a hard reload but when you resize the browser window, will randomly flip between colors.

WqE9mpX

f1IyqJJ

I tested in both Chrome and Safari so I don't think it's a browser issue.

More discussion here: #10637

Edit: They also appear to change color with sidebar collapse and also polling updates.

Expected behavior

Stay the original color.

Steps to reproduce

Open demo app dashboard and resize browser. Observe stat widget chart colors change.

Reproduction repository (issue will be closed if this is not valid)

https://github.com/filamentphp/demo

Donate 💰 to fund this issue

  • You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
  • 100% of the funding will be distributed between the Filament core team to run all aspects of the project.
  • Thank you in advance for helping us make maintenance sustainable!
Fund with Polar
@zepfietje
Copy link
Member

I've been able to reproduce this issue on Safari now.
If you have any idea about the cause of the bug, please let us know or attempt a pull request to fix the issue. 🙂

@zepfietje zepfietje changed the title Stat widget charts are randomly changing color when resizing the browser Stats overview widget charts randomly change color when resizing browser Jul 12, 2024
@oele-dev oele-dev mentioned this issue Jul 13, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants