nodejs / nodejs/nodejs.org

UI: one line code block ghost copy button

Open
#9,085 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

accessibility design
Dominant language
TypeScript
Stars
6.9k
Forks
6.5k
Avg merge
2d 8h
Merged PRs (30d)
29

Description

Description

in example the one line bash code block didn't have copy button which is useful in this case.

Image

Why we remove tabs and button on bottom? Bascly took to much space.

Solution

Having a ghost button (mean visible on hover).

https://github.com/user-attachments/assets/9859ae75-1bea-4be7-872c-db201d3e4499

But there are still case where button is useless IMO. here for example have copy button isn't really usefull but when user will hover it button will appear so it's take "mental/visual ressource"

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked deprecations example and trace the code-block copy-button entry point used there. The change is done when one-line bash blocks retain a copy action that appears on hover, while the button does not add persistent visual space in cases where it is less useful.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, react, typescript
Domain
design, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.