Skip to content

Commit adf7836

Browse files
chore: Update dark theme logos styling
1 parent 143221a commit adf7836

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

docs/src/components/HomepageFeatures/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,15 @@ const FeatureList: FeatureItem[] = [
4242
]
4343

4444
function Feature({ title, Svg, description }: FeatureItem) {
45+
var classVar = styles.featureSvg;
46+
if(Svg === require('@site/static/img/github.svg').default)
47+
{
48+
classVar = styles.featureSvg +" "+ styles.githubLogo;
49+
}
4550
return (
4651
<div className={clsx('col col--4')}>
4752
<div className="text--center">
48-
<Svg className={styles.featureSvg} role="img" />
53+
<Svg className={classVar} role="img" />
4954
</div>
5055
<div className="text--center padding-horiz--md">
5156
<h3>{title}</h3>

docs/src/components/HomepageFeatures/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
height: 200px;
1010
width: 200px;
1111
}
12+
13+
html[data-theme='dark'] .githubLogo {
14+
fill: #fff;
15+
}

docs/src/components/HomepageSponsored/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,16 @@ const SponsorList: SponsorItem[] = [
5151
]
5252

5353
function Feature({ title, Svg, link }: FeatureItem) {
54+
var classVar = styles.featureSvg;
55+
if(Svg === require('@site/static/img/Algolia-logo.svg').default)
56+
{
57+
classVar = styles.featureSvg +" "+ styles.AlgoliaLogo;
58+
}
5459
return (
5560
<div className={clsx('col col--6')}>
5661
<div className="text--center">
5762
<a href={link} title={title} target="_blank" rel="noreferrer" aria-label={title}>
58-
<Svg className={styles.featureSvg} role="img" />
63+
<Svg className={classVar} role="img"/>
5964
</a>
6065
</div>
6166
</div>

docs/src/components/HomepageSponsored/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@
2929
width: 100%;
3030
}
3131
}
32+
33+
html[data-theme='dark'] .AlgoliaLogo{
34+
fill: #fff;
35+
}

docs/static/img/Algolia-logo.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)