Skip to content

Conversation

@bluwy
Copy link
Contributor

@bluwy bluwy commented Nov 12, 2025

Description

Shell code examples like

$ npm add -D vitepress@next

has the leading $ that can be selected. This PR prevents it from being selected with user-select: none.

Linked Issues

Originally reported from Vite side: vitejs/vite#21108. I didn't find an issue here.

Additional Context

Example affected page: https://vitepress.dev/guide/getting-started

@brc-dd
Copy link
Member

brc-dd commented Nov 12, 2025

I thought I had fixed this. Turns out it was only in a bsky thread 😅 (https://bsky.app/profile/nathanbeddoe.com/post/3lkyumevrkk2f / https://stackblitz.com/edit/vite-wcudkjqr?file=docs/.vitepress/config.ts)

@brc-dd brc-dd merged commit bf2715e into vuejs:main Nov 12, 2025
9 checks passed
@bluwy bluwy deleted the no-copy-dollar branch November 12, 2025 04:50
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants