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.24k stars 2.96k forks source link

Theme switcher tooltips stay on screen on mobile #8701

Open binaryfire opened 1 year ago

binaryfire commented 1 year ago

Package

filament/filament

Package Version

3.0.60

Laravel Version

10.2.6

Livewire Version

No response

PHP Version

8.2

Problem description

The tooltips for the dark / light mode switcher stay on screen on mobile.

Expected behavior

They shouldn’t stay on screen after the switcher has closed.

Steps to reproduce

Visit https://demo.filamentphp.com/ on a mobile device. I’m using an iPhone X.

Reproduction repository

https://github.com/filamentphp/demo

Relevant log output

No response

Donate 💰 to fund this issue

Fund with Polar

valpuia commented 1 year ago

I am using OnePlus (android 13) and I can't reproduce this

binaryfire commented 1 year ago

Screenshots from the demo site. iPhone X, happens in both Chrome and Safari:

IMG_0280 IMG_0279

zepfietje commented 1 year ago

Can confirm this on iOS. Have you found a fix, @binaryfire?

binaryfire commented 1 year ago

Hey @zepfietje. Couldn't figure it out. It could be related to tippy.js or Popper (which tippy uses under the hood). Development on both libraries has been discontinued and there are lots of open issues.

I'd really recommend switching Filament over to Floating UI if you're able. It's basically Popper v2.

zepfietje commented 1 year ago

We're currently using https://github.com/ryangjchandler/alpine-tooltip, so let's ask @ryangjchandler about his opinion.

zepfietje commented 4 months ago

Replaced by https://github.com/filamentphp/filament/issues/13333.