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

UDropdown is displaying underneath some page elements #1736

Open
RaulRohjans opened this issue May 2, 2024 · 3 comments
Open

UDropdown is displaying underneath some page elements #1736

RaulRohjans opened this issue May 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@RaulRohjans
Copy link

Environment

  • Operating System: Arch Linux
  • Node Version: 2.9.6
  • Nuxt Version: 3.11.2
  • Nitro Version: 2.8.1
  • Package Manager: yarn@1.22.22
  • Builder: -
  • User Config: extends, modules, app, ui, imports, devtools
  • Runtime Modules: '@nuxt/ui', '@nuxtjs/tailwindcss', '@nuxtjs/color-mode', 'nuxt-icon', '@sidebase/nuxt-auth'
  • Build Modules: -

Version

@nuxt/ui": "^2.13.0

Reproduction

Description should be clear.

Description

I have a navbar with a UDropdown for some user options in my default layout.
The issue is that certain elements will display over the dropdown, such as inputs and some UTable borders

image

Additional context

No response

Logs

No response

@RaulRohjans RaulRohjans added the bug Something isn't working label May 2, 2024
@RaulRohjans RaulRohjans changed the title UDropdown is not displaying over other page elements UDropdown is displaying underneath some page elements May 2, 2024
@KonradDRAST
Copy link

KonradDRAST commented May 6, 2024

Same here. It probably have something to do with "transform: translate()" on the dropdown container. There is class z-20 added on the same container, but the translation resets stacking context, and in the end, probably causes an issue.

@KonradDRAST
Copy link

I was checking all elements and (in my case) the problem arose because of some relatively positioned elements down below.
Once I added classes relative z-20 to my header problem was solved.

Probably not a bug then, but an issue with CSS stacking context in your project.

@RaulRohjans
Copy link
Author

Maybe this could be fixed by rendering the dropdown at the bottom of the DOM and then positioning it where it should be displayed, does the component provide a way of doing that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants