Skip to content

Commit cbf10c4

Browse files
committed
move the new class to the right file and pass classname explicitly
1 parent 9a608ac commit cbf10c4

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/assets/App.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,6 @@ a {
413413
.dark .blockHeaderWhite {
414414
color: white;
415415
}
416-
.dark .SELogo {
417-
fill: white;
418-
}
419-
420416

421417
.light .blockHeaderWhite {
422418
color: black;

src/components/Elements/SearchBarWithLogo/SearchBarWithLogo.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@
1616
width: 100%;
1717
height: 100%;
1818
}
19+
20+
.dark .searchEngineLogo .themeAdaptiveFillColor {
21+
fill: white;
22+
}

src/components/Elements/SearchBarWithLogo/SearchBarWithLogo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export const SearchBarWithLogo = () => {
1111

1212
return (
1313
<div className="searchBarWithLogo">
14-
{userSearchEngine && userSearchEngine.logo && (
14+
{userSearchEngine?.logo && (
1515
<div className="searchEngineLogo">
16-
<userSearchEngine.logo />
16+
<userSearchEngine.logo className={userSearchEngine?.className} />
1717
</div>
1818
)}
1919
<SearchBar />

src/config/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import { ReactComponent as DuckDuckGoLogo } from 'src/assets/duckduckgo_logo.svg
88
import { ReactComponent as GoogleLogo } from 'src/assets/google_logo.svg'
99
import HashNodeIcon from 'src/assets/icon_hashnode.png'
1010
import LobstersIcon from 'src/assets/icon_lobsters.png'
11+
import { ReactComponent as PhindLogo } from 'src/assets/phind_logo.svg'
1112
import { ReactComponent as StartPageLogo } from 'src/assets/startpage_logo.svg'
1213
import { ReactComponent as YahooLogo } from 'src/assets/yahoo_logo.svg'
1314
import { ReactComponent as YandexLogo } from 'src/assets/yandex_logo.svg'
14-
import { ReactComponent as PhindLogo } from 'src/assets/phind_logo.svg'
1515

1616
import {
1717
ConferencesCard,
@@ -75,6 +75,7 @@ export const SUPPORTED_SEARCH_ENGINES = [
7575
label: 'Yandex',
7676
url: 'https://yandex.ru/search/?text=',
7777
logo: YandexLogo,
78+
className: 'themeAdaptiveFillColor',
7879
},
7980
{
8081
label: 'Startpage',
@@ -84,7 +85,8 @@ export const SUPPORTED_SEARCH_ENGINES = [
8485
{
8586
label: 'Phind',
8687
url: 'https://phind.com/search?q=',
87-
logo: <PhindLogo className={"SELogo"} />,
88+
logo: PhindLogo,
89+
className: 'themeAdaptiveFillColor',
8890
},
8991
]
9092
export const SUPPORTED_CARDS: SupportedCardType[] = [

0 commit comments

Comments
 (0)