nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
4.08k stars 529 forks source link

Tooltip position is incorrect when using backdrop-blur #869

Closed GavinJaynes closed 1 month ago

GavinJaynes commented 1 year ago

Environment

Version

v2.9.0

Reproduction

https://stackblitz.com/edit/nuxt-starter-3l6xxj?file=app.vue

Description

When using the Tooltip component inside an element that has the Taillwind backdrop-blur class applied the tooltip position is incorrect.

https://tailwindcss.com/docs/backdrop-blur

Additional context

If there is an additional CSS property to add to the wrapping parent maybe it could be added to the docs.

Logs

No response

madebyfabian commented 1 year ago

Seems related: https://github.com/floating-ui/floating-ui/issues/2333

jankaderabek commented 1 year ago

I face the same issue, it causes that I can't see popover on mobile for example. Have you found any workaround?

GavinJaynes commented 1 year ago

I face the same issue, it causes that I can't see popover on mobile for example. Have you found any workaround?

Hi, my workaround is to remove the backdrop-blur class on the parent element. It's not ideal but works for now.

acidjazz commented 8 months ago

Seems related: floating-ui/floating-ui#2333

Looks like this was fixed, do we just need to update?

benjamincanac commented 8 months ago

We can't fix it in this version as we're using Popper.js. However, in #1289 we migrate all the components to Radix Vue which uses Floating UI underneath.

acidjazz commented 8 months ago

We can't fix it in this version as we're using Popper.js. However, in #1289 we migrate all the components to Radix Vue which uses Floating UI underneath.

CANT WAIT