Skip to content

fix: prevent pseudo-element from blocking file operation clicks (#4005)#4018

Open
Samm-05 wants to merge 1 commit intoprocessing:developfrom
Samm-05:fix/file-operations-click-4005
Open

fix: prevent pseudo-element from blocking file operation clicks (#4005)#4018
Samm-05 wants to merge 1 commit intoprocessing:developfrom
Samm-05:fix/file-operations-click-4005

Conversation

@Samm-05
Copy link
Copy Markdown

@Samm-05 Samm-05 commented Mar 21, 2026

🐛 Issue

Fixes #4005

🔍 Problem

File operation dropdown actions (Rename, Delete, Create, Upload) appear but may not respond to clicks.

🧠 Root Cause

The ::before pseudo-element on .sidebar__file-item-name spans the full file row and may intercept pointer events, preventing interaction with dropdown menu items.

🛠 Solution

Added pointer-events: none to the pseudo-element so it does not block interactions.

✅ Impact

  • Allows file operation actions to receive click events
  • No changes to layout or structure
  • Minimal and safe fix

🧪 Testing

  • Verified CSS logic and behavior
  • Requesting maintainers to validate interaction in their environment

📌 Notes

This is a targeted fix with minimal changes, preserving existing UI behavior.

@yugalkaushik
Copy link
Copy Markdown
Contributor

I wanted to check if you were able to replicate the issue on your end. Could you please share the steps or evidence for that? I noticed another contributor mentioned that they were not able to reproduce the error, so it would be helpful to clarify this.

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.

File Operations (Rename/Delete/Create/Upload) Not Working for Both Files and Folders in Sketch Files Panel

2 participants