diff --git a/docs/src/components/HomepageFeatures/index.tsx b/docs/src/components/HomepageFeatures/index.tsx index 6878007c2..c9dbb80a9 100644 --- a/docs/src/components/HomepageFeatures/index.tsx +++ b/docs/src/components/HomepageFeatures/index.tsx @@ -42,10 +42,15 @@ const FeatureList: FeatureItem[] = [ ] function Feature({ title, Svg, description }: FeatureItem) { + var classVar = styles.featureSvg; + if(Svg === require('@site/static/img/github.svg').default) + { + classVar = styles.featureSvg +" "+ styles.githubLogo; + } return (
- +

{title}

diff --git a/docs/src/components/HomepageFeatures/styles.module.css b/docs/src/components/HomepageFeatures/styles.module.css index b248eb2e5..04a160d07 100644 --- a/docs/src/components/HomepageFeatures/styles.module.css +++ b/docs/src/components/HomepageFeatures/styles.module.css @@ -9,3 +9,7 @@ height: 200px; width: 200px; } + +html[data-theme='dark'] .githubLogo { + fill: #fff; +} \ No newline at end of file diff --git a/docs/src/components/HomepageSponsored/index.tsx b/docs/src/components/HomepageSponsored/index.tsx index 0ba14b1c9..54dcedba2 100644 --- a/docs/src/components/HomepageSponsored/index.tsx +++ b/docs/src/components/HomepageSponsored/index.tsx @@ -51,11 +51,16 @@ const SponsorList: SponsorItem[] = [ ] function Feature({ title, Svg, link }: FeatureItem) { + var classVar = styles.featureSvg; + if(Svg === require('@site/static/img/Algolia-logo.svg').default) + { + classVar = styles.featureSvg +" "+ styles.AlgoliaLogo; + } return (
- +
diff --git a/docs/src/components/HomepageSponsored/styles.module.css b/docs/src/components/HomepageSponsored/styles.module.css index c5af04aeb..efc24c3a9 100644 --- a/docs/src/components/HomepageSponsored/styles.module.css +++ b/docs/src/components/HomepageSponsored/styles.module.css @@ -29,3 +29,7 @@ width: 100%; } } + +html[data-theme='dark'] .AlgoliaLogo{ + fill: #fff; +} \ No newline at end of file diff --git a/docs/static/img/Algolia-logo.svg b/docs/static/img/Algolia-logo.svg index 48d492a6a..31b645700 100644 --- a/docs/static/img/Algolia-logo.svg +++ b/docs/static/img/Algolia-logo.svg @@ -1 +1 @@ - +