From d18188fd8ac4f01b277f3834a5a96d91d1e64e9e Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 4 Dec 2025 21:24:44 +0530 Subject: [PATCH 1/2] fix(copy-button): update styling to match Webpack theme and improve hover state --- src/components/CodeBlockWithCopy/CodeBlockWithCopy.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/CodeBlockWithCopy/CodeBlockWithCopy.scss b/src/components/CodeBlockWithCopy/CodeBlockWithCopy.scss index 18e59c74236d..1962cc168a47 100644 --- a/src/components/CodeBlockWithCopy/CodeBlockWithCopy.scss +++ b/src/components/CodeBlockWithCopy/CodeBlockWithCopy.scss @@ -37,7 +37,7 @@ /* Always visible */ opacity: 1; - background-color: #7c3aed; + background-color: #175d96; color: #e2e8f0; transition: @@ -45,7 +45,7 @@ transform 0.1s; &:hover { - background-color: #6d28d9; + background-color: #2f85d0; } /* Success */ From d0353cc16911a27ad1bf2234734101556c847aff Mon Sep 17 00:00:00 2001 From: Aditya Date: Fri, 5 Dec 2025 09:45:14 +0530 Subject: [PATCH 2/2] style(copy-button): adjust top spacing to avoid being too close to the edge --- src/components/CodeBlockWithCopy/CodeBlockWithCopy.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CodeBlockWithCopy/CodeBlockWithCopy.scss b/src/components/CodeBlockWithCopy/CodeBlockWithCopy.scss index 1962cc168a47..7c0c08d4309e 100644 --- a/src/components/CodeBlockWithCopy/CodeBlockWithCopy.scss +++ b/src/components/CodeBlockWithCopy/CodeBlockWithCopy.scss @@ -21,7 +21,7 @@ .copy-button { position: absolute; - top: 0.32rem; + top: 0.6rem; right: 0.5rem; z-index: 10;