Skip to content

Fix: Support light mode visibility for Integrations honeycomb grid#7532

Merged
saurabhraghuvanshii merged 4 commits intolayer5io:masterfrom
JayH25:fix-light-mode-integrations
Mar 25, 2026
Merged

Fix: Support light mode visibility for Integrations honeycomb grid#7532
saurabhraghuvanshii merged 4 commits intolayer5io:masterfrom
JayH25:fix-light-mode-integrations

Conversation

@JayH25
Copy link
Contributor

@JayH25 JayH25 commented Mar 21, 2026

Description

This PR resolves the visibility issue in the Integrations honeycomb grid when the site is toggled to light mode. The root cause was that the background colors were hardcoded to a dark grey, making the text and logos unreadable when the site background turned white.

Changes Made

  • Integration.style.js: Removed the old props.theme.radialToBlue and updated the styling to use props.theme.grey212121ToWhite to properly support the light/dark mode switch.

  • IntegrationsGrid.js: The inactive <Hexagon> components previously used a hardcoded inline style (background: "#A0AAAA"). I replaced this with a conditional check (isDark ? "#A0AAAA" : "#EEEEEE") so the colors now dynamically adapt whenever the theme is toggled.

This PR fixes issue: #7530

Signed-off-by: JayH25 <jayhirapara2506@gmail.com>
@l5io
Copy link
Member

l5io commented Mar 21, 2026

🚀 Preview for commit a6b42bf at: https://69be5a3bfd0be612de3cee83--layer5.netlify.app

display: flex;
height: 100%;
background: ${(props) => props.theme.radialToBlue};
background: ${(props) => props.theme.grey212121ToWhite};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JayH25 why this?

Copy link
Contributor Author

@JayH25 JayH25 Mar 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated this variable because the previous one (radialToBlue) was causing the background behind the grid to stay dark when toggled to black mode, which made the logos and text hard to see.
Switching it to grey...ToWhite fixed the issue by keeping it dark in dark mode, but properly changing to a white/light background in light mode.

If you want to keep it as it is then let me know!
Can you just watch the preview and on website and compare?

If you want then let me know!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can see that in dark mode, one of the integretions hexagon is getting disappeared
if you say then i would revert that as the primary goal of this pr is to resolve this incompatibility with light mode.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JayH25 revert this our goal is to make compatible with light mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok , reverted !

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saurabhraghuvanshii ok now it is working as you told

I just couldn't revert to radialblue because that variable is preventing hexagones to be whitish (it's not compatible in white mode- you can see in second last preview)
So i have passed isDark prop to integration.style and now this logic is handling issue perfectly.

Signed-off-by: JayH25 <jayhirapara2506@gmail.com>
@l5io
Copy link
Member

l5io commented Mar 23, 2026

🚀 Preview for commit 67cef00 at: https://69c148d16945f30bd81310f2--layer5.netlify.app

Signed-off-by: JayH25 <jayhirapara2506@gmail.com>
@l5io
Copy link
Member

l5io commented Mar 23, 2026

🚀 Preview for commit c867c42 at: https://69c15df49864184379ddba67--layer5.netlify.app

@saurabhraghuvanshii
Copy link
Member

Thanks @JayH25 LGTM!!

@saurabhraghuvanshii saurabhraghuvanshii merged commit 27c2889 into layer5io:master Mar 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants