Skip to content

Commit 228bc81

Browse files
Merge pull request #7573 from Junnygram/fix-7572-footer-images-dark-mode
fix(#7572): make mascot images visible in dark theme using filters
2 parents 1454a6e + 3b03f61 commit 228bc81

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/sections/Company/Brand/Brand-components/stickfigures.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const StickFigures = () => {
6464
</Col>
6565
<Row $Vcenter className="fiveDiv" style={{ minWidth: "200px" }}>
6666
<Col $xs={12}>
67-
<img src={SFL} alt="Layer5 Mascot, Five" />
67+
<img src={SFL} alt="Layer5 Mascot, Five" className="five-image" />
6868
</Col>
6969
</Row>
7070
<Row $Vcenter className="fiveDiv" style={{ minWidth: "200px" }}>
@@ -74,15 +74,15 @@ const StickFigures = () => {
7474
</Row>
7575
<Row $Vcenter className="fiveDiv">
7676
<Col $xs={12} $sm={6}>
77-
<img src={teamOfFives} alt="Layer5 Mascot, Five" />
77+
<img src={teamOfFives} alt="Layer5 Mascot, Five" className="five-image" />
7878
{/* <img src={f1} alt="Layer5 Mascot, Five" />
7979
<img src={f2} alt="Layer5 Mascot, Five" />
8080
<img src={f3} alt="Layer5 Mascot, Five" />
8181
<img src={f4} alt="Layer5 Mascot, Five" />
8282
<img src={f5} alt="Layer5 Mascot, Five" /> */}
8383
</Col>
8484
<Col $xs={12} $sm={6}>
85-
<img src={resourcesSign} alt="Layer5 Mascot, Five" />
85+
<img src={resourcesSign} alt="Layer5 Mascot, Five" className="five-image" />
8686
{/* <img src={f13} alt="Layer5 Mascot, Five" />
8787
<img src={f14} alt="Layer5 Mascot, Five" />
8888
<img src={f15} alt="Layer5 Mascot, Five" />

src/sections/Company/Brand/brandPage.style.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,8 @@ const BrandPageWrapper = styled.section`
195195
justify-content: space-around;
196196
gap: 1rem;
197197
}
198-
.fiveDiv > img {
199-
max-width: 150px;
200-
background-color: "#fff";
201-
align-self: center;
198+
.five-image {
199+
filter: ${props => props.theme.DarkTheme ? "invert(1) hue-rotate(180deg)" : "none"};
202200
}
203201
img.Layer5Icon {
204202
width: auto;

0 commit comments

Comments
 (0)