Skip to content

fix: exclude copy selection in btns and tooltip of install - #978

Merged
danielroe merged 1 commit into
npmx-dev:mainfrom
benjavicente:main
Feb 5, 2026
Merged

fix: exclude copy selection in btns and tooltip of install#978
danielroe merged 1 commit into
npmx-dev:mainfrom
benjavicente:main

Conversation

@benjavicente

Copy link
Copy Markdown
Contributor

Makes the buttons and the tooltip non selectable for the install terminal commands.

Screen.Recording.2026-02-04.at.21.37.02.mov

@vercel

vercelBot commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
npmx.devReadyReadyPreview, CommentFeb 5, 2026 0:48am
2 Skipped Deployments
ProjectDeploymentActionsUpdated (UTC)
docs.npmx.devIgnoredIgnoredPreviewFeb 5, 2026 0:48am
npmx-lunariaIgnoredIgnoredFeb 5, 2026 0:48am

Request Review

@codecov

codecovBot commented Feb 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@coderabbitai

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

The changes add the select-none CSS class to multiple interactive elements within the Install component. Install command copy buttons for all package managers, the view types NuxtLink, run command copy buttons for executables, and create command copy buttons all receive the new class. Additionally, the create command comment line structure is simplified with the select-none class moved from an inner span to its outer container. The modifications affect only presentation layer styling; no alterations are made to command generation logic or component functionality.

🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check nameStatusExplanation
Description check✅ PassedThe pull request description directly relates to the changeset, describing the addition of select-none classes to buttons and other interactive elements to prevent text selection.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@danielroe
danielroe added this pull request to the merge queueFeb 5, 2026
Merged via the queue into npmx-dev:main with commit 217e072Feb 5, 2026
15 checks passed
Sign up for freeto 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.

2 participants

@benjavicente@danielroe