diff --git a/packages/docusaurus-theme-classic/src/theme/Icon/Socials/GitHub/index.tsx b/packages/docusaurus-theme-classic/src/theme/Icon/Socials/GitHub/index.tsx index 2fee4037a0..34ed3c4f9f 100644 --- a/packages/docusaurus-theme-classic/src/theme/Icon/Socials/GitHub/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Icon/Socials/GitHub/index.tsx @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -import type {ReactNode, SVGProps} from 'react'; +import type {ReactNode, SVGProps, CSSProperties} from 'react'; import clsx from 'clsx'; import styles from './styles.module.css'; @@ -14,14 +14,14 @@ import styles from './styles.module.css'; function GitHub(props: SVGProps): ReactNode { return ( + className={clsx(props.className, styles.githubSvg)}> ); diff --git a/packages/docusaurus-theme-classic/src/theme/Icon/Socials/LinkedIn/index.tsx b/packages/docusaurus-theme-classic/src/theme/Icon/Socials/LinkedIn/index.tsx index 7cb8b2aa45..1970a5bcd1 100644 --- a/packages/docusaurus-theme-classic/src/theme/Icon/Socials/LinkedIn/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Icon/Socials/LinkedIn/index.tsx @@ -11,9 +11,9 @@ import type {ReactNode, SVGProps} from 'react'; function LinkedIn(props: SVGProps): ReactNode { return ( diff --git a/packages/docusaurus-theme-classic/src/theme/Icon/Socials/Threads/index.tsx b/packages/docusaurus-theme-classic/src/theme/Icon/Socials/Threads/index.tsx index 76e33d036e..dbaa2f21bd 100644 --- a/packages/docusaurus-theme-classic/src/theme/Icon/Socials/Threads/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Icon/Socials/Threads/index.tsx @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -import type {SVGProps, ReactNode} from 'react'; +import type {SVGProps, ReactNode, CSSProperties} from 'react'; import clsx from 'clsx'; import styles from './styles.module.css'; @@ -20,9 +20,9 @@ function Threads(props: SVGProps): ReactNode { width="1em" fill="none" height="1em" + style={{'--dark': '#000', '--light': '#fff'} as CSSProperties} {...props} - className={clsx(props.className, styles.threadsSvg)} - style={{'--dark': '#000', '--light': '#fff'} as React.CSSProperties}> + className={clsx(props.className, styles.threadsSvg)}> ); diff --git a/packages/docusaurus-theme-classic/src/theme/Icon/Socials/Twitch/index.tsx b/packages/docusaurus-theme-classic/src/theme/Icon/Socials/Twitch/index.tsx index 4ec52c0ae3..a9208b8e3d 100644 --- a/packages/docusaurus-theme-classic/src/theme/Icon/Socials/Twitch/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Icon/Socials/Twitch/index.tsx @@ -11,8 +11,6 @@ function Twitch(props: SVGProps): ReactNode { return ( ): ReactNode { d="m2200 1300-400 400h-400l-350 350v-350H600V200h1600z" fill="#fff" /> - + ): ReactNode { return ( ): ReactNode { height="1em" fill="none" viewBox="0 0 1200 1227" + style={{'--dark': '#000', '--light': '#fff'} as CSSProperties} {...props} - className={clsx(props.className, styles.xSvg)} - style={{'--dark': '#000', '--light': '#fff'} as React.CSSProperties}> + className={clsx(props.className, styles.xSvg)}> );