Skip to content

Fix clipboard z-index overlap with Dataframe cell menu#13011

Closed
gambletan wants to merge 2 commits intogradio-app:mainfrom
gambletan:fix/cell-menu-z-index-overlap
Closed

Fix clipboard z-index overlap with Dataframe cell menu#13011
gambletan wants to merge 2 commits intogradio-app:mainfrom
gambletan:fix/cell-menu-z-index-overlap

Conversation

@gambletan
Copy link
Copy Markdown
Contributor

Summary

  • Fixes Clipboard icon of some components appears above gr.Dataframe cell's context menu #11561
  • The CellMenu context menu in gr.Dataframe used z-index: var(--layer-1), which is lower than the IconButtonWrapper's z-index: var(--layer-2) used by clipboard copy buttons in gr.JSON and gr.Markdown. This caused the copy button to render above the context menu when they overlapped.
  • Raised CellMenu z-index to var(--layer-3) so it always renders above other component UI elements like copy buttons.
  • Removed the duplicate z-index: 9 declaration that was being overridden.

Test plan

  • Place a gr.Dataframe next to a gr.JSON(show_copy_button=True) component
  • Click on a cell in the dataframe to open the context menu
  • Verify the context menu renders above the JSON clipboard copy button
  • Repeat with gr.Markdown(show_copy_button=True)
  • Verify gr.Textbox and gr.Number copy buttons also remain behind the context menu

🤖 Generated with Claude Code

Ethan T. and others added 2 commits March 13, 2026 13:34
The CellMenu context menu in gr.Dataframe used z-index: var(--layer-1),
which is lower than the IconButtonWrapper's z-index: var(--layer-2) used
by clipboard copy buttons in gr.JSON and gr.Markdown. This caused the
copy button to render above the context menu.

Raise CellMenu z-index to var(--layer-3) and remove the duplicate
z-index: 9 declaration.

Fixes gradio-app#11561
@freddyaboulton
Copy link
Copy Markdown
Collaborator

Duplicate of #13008 . please refrain from opening duplicate prs. Especially if it is entirely ai generated. It is rude.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clipboard icon of some components appears above gr.Dataframe cell's context menu

3 participants