Skip to content

Conversation

@theEquinoxDev
Copy link
Contributor

Summary

This PR updates the styling of the code-block “Copy” button to improve UI consistency with the rest of the documentation.
The previous button colors and hover behavior were visually inconsistent, which made the component feel disconnected from the surrounding UI.
This update applies a cleaner color scheme, improved contrast, and a clearer hover state to create a more modern and cohesive user experience.

Fixes #7723

What kind of change does this PR introduce?

Bugfix / UI improvement
This PR modifies the button’s styling only - no functional logic was changed.

Did you add tests for your changes?

No tests were added because this change affects visual styling only, not logic or functionality.

Does this PR introduce a breaking change?

No.
The change is entirely cosmetic and does not affect behavior, API surface, or any existing user flows.

If relevant, what needs to be documented once your changes are merged?

No documentation changes are required.
This PR only updates internal styling for improved visual consistency.

Screenshots
Before

Screenshot 2025-12-04 171230

After
Screenshot 2025-12-04 212124

@vercel
Copy link

vercel bot commented Dec 4, 2025

@theEquinoxDev is attempting to deploy a commit to the OpenJS Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 4, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@theEquinoxDev
Copy link
Contributor Author

Opened a PR for this issue: #7723

@alexander-akait
Copy link
Member

cc @evenstensberg Can you review?

@vercel
Copy link

vercel bot commented Dec 4, 2025

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

Project Deployment Preview Comments Updated (UTC)
webpack-js-org Ready Ready Preview Comment Dec 5, 2025 0:08am

@evenstensberg
Copy link
Member

This is great, can u pad the button a bit so its not sticky to the top?

@theEquinoxDev
Copy link
Contributor Author

theEquinoxDev commented Dec 5, 2025

This is great, can u pad the button a bit so its not sticky to the top?
Thanks for the feedback! I’ve adjusted the top spacing so the button no longer sits too close to the edge. Let me know if you'd like any further tweaks.

image

@evenstensberg evenstensberg merged commit 644460a into webpack:main Dec 5, 2025
8 checks passed
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.

UI Consistency Improvement: Update Copy Button Color to Match Site Theme

3 participants