From 50e3c746c2f7278e36d2a865dd2efc95b8606e4e Mon Sep 17 00:00:00 2001 From: Weronika Olejniczak <32842468+weronikaolejniczak@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:52:51 +0100 Subject: [PATCH] fix(docusaurus-theme): fill Codesandbox icon with currentColor (#8127) --- .../codesandbox_icon/codesandbox_icon.tsx | 19 ++++++++++++++----- packages/website/README.md | 2 +- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/docusaurus-theme/src/components/codesandbox_icon/codesandbox_icon.tsx b/packages/docusaurus-theme/src/components/codesandbox_icon/codesandbox_icon.tsx index 9e3737b2c19..f9987873d86 100644 --- a/packages/docusaurus-theme/src/components/codesandbox_icon/codesandbox_icon.tsx +++ b/packages/docusaurus-theme/src/components/codesandbox_icon/codesandbox_icon.tsx @@ -1,7 +1,16 @@ -export const CodeSandboxIcon = () => ( - - +import { HTMLAttributes } from 'react'; + +type Props = HTMLAttributes; + +export const CodeSandboxIcon = (props: Props) => ( + + ); diff --git a/packages/website/README.md b/packages/website/README.md index a474577b61b..67b75f33ffd 100644 --- a/packages/website/README.md +++ b/packages/website/README.md @@ -72,7 +72,7 @@ to have version-specific search experience without the need to run a search server. Because the search index is generated in build time, it means that -searching is not possible when running the development sever. +searching is not possible when running the development server. Please refer to the [Building the website](#building-the-website) section to learn how to build the documentation site locally and serve it to use local search.