N
Nuxt11mo ago
Tyler

UButton showing over sticky header

I have a table and one of the columns is filled with Nuxt UI buttons. I have a sticky header for this table and everything works with the header just fine except the buttons. The buttons overlap on top of the table when scrolling so it doesn’t look right. Is there a tailwind class I need to use or something?
9 Replies
pyplacca
pyplacca11mo ago
Seems like a z-index and/or positioning - of the buttons - problem
Tyler
TylerOP11mo ago
Correction, it’s only the icon of the button Weird
pyplacca
pyplacca11mo ago
The icon might have it’s position set to absolute with a higher stacking context
Tyler
TylerOP11mo ago
Yeah I had to set the z index of my header to 1000 Setting the z index of the button to -1 didn’t work
pyplacca
pyplacca11mo ago
Did this solve the issue?
Tyler
TylerOP11mo ago
Weird Using the z-100 tailwind class doesn’t work But using z-[100] does
pyplacca
pyplacca11mo ago
That’s because tailwind doesn’t have a built in z-100 class
Tyler
TylerOP11mo ago
Oh I’m dumb Ok
pyplacca
pyplacca11mo ago
I’ve been there 😅

Did you find this page helpful?