From 992d61dfbcda96db165b2c82ffada48084779fe3 Mon Sep 17 00:00:00 2001 From: IsaccoSordo Date: Fri, 23 Aug 2024 16:51:02 +0200 Subject: [PATCH] fix: styling --- .../Playground/components/copy-button.jsx | 40 ++++++++----------- src/theme/Playground/styles.module.css | 26 ++++++++++++ 2 files changed, 42 insertions(+), 24 deletions(-) diff --git a/src/theme/Playground/components/copy-button.jsx b/src/theme/Playground/components/copy-button.jsx index c59a2d50..730b88c5 100644 --- a/src/theme/Playground/components/copy-button.jsx +++ b/src/theme/Playground/components/copy-button.jsx @@ -1,14 +1,22 @@ import { useState } from "react"; +import { useColorMode } from "@docusaurus/theme-common"; +import "../styles.module.css"; const CopyButton = ({ text }) => { const [isCopied, setIsCopied] = useState(false); + const { colorMode } = useColorMode(); + return ( <>