layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

fix: improve integration logo visibility in dark and light mode

Open AnkitRewar11 opened this issue 6 months ago • 8 comments

Description

Fixes #7676

This PR fixes integration logo visibility issues in both dark mode and light mode on the Meshery integrations page.

Changes Made

  • IntegrationsGrid.js: Fixed incorrect darkModeIntegrationIcon reference that was pointing to color icon instead of white icon
  • Aerospike: Fixed white SVG where fill color was #1A1A1A (dark) instead of #FFFFFF (white), causing invisibility in dark mode
  • Solr: Removed invalid sodipodi:namedview tags from both color and white SVGs that were causing rendering issues in dark mode
  • Ngrok: Fixed empty clipPath in color SVG that was hiding the logo in light mode, and updated fill color to #006AFF
  • Vald: White SVG was completely empty, created proper white SVG paths so logo renders in dark mode
  • Rustrial AWS EKS IAM Auth Controller: Both color and white SVG files were empty, created placeholder SVGs

Notes for Reviewers

  • Light mode logos retain their original colors
  • Dark mode logos now properly show white versions
  • No breaking changes

Signed commits

  • [x] Yes, I signed my commits.

AnkitRewar11 avatar May 06 '26 11:05 AnkitRewar11

Preview deployment for PR #7706 removed.

This PR preview was automatically pruned because we keep only the 6 most recently updated previews on GitHub Pages to stay within deployment size limits.

If needed, push a new commit to this PR to generate a fresh preview.

github-actions[bot] avatar May 06 '26 11:05 github-actions[bot]

@AnkitRewar11, could you please make a commit so the preview can be built?

rishiraj38 avatar May 09 '26 10:05 rishiraj38

@AnkitRewar11 Thank you for your contribution! Let's discuss this during the website call tomorrow at 5:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would :slightly_smiling_face:

Bhumikagarggg avatar May 10 '26 16:05 Bhumikagarggg

Hi @rishiraj38,

Thank you for the review! I have addressed all the reported issues. Regarding the integration page issue is only showing up in the preview. When I build it locally, everything works normally on my side. That’s why I feel something might be wrong with the preview environment, because locally I’m not able to reproduce the issue. And as you can see, I only added one class name for darkMode in the code everything else is unchanged.

Please let me know if any further changes are needed.

AnkitRewar11 avatar May 11 '26 11:05 AnkitRewar11

@saurabhraghuvanshii @Rajesh-Nagarajan-11 Please take a look at this PR.

rishiraj38 avatar May 31 '26 19:05 rishiraj38

@KatalKavya96 Hey, sorry for the delay. I'll get back to working on this and resume it as soon as possible.

AnkitRewar11 avatar Jun 04 '26 17:06 AnkitRewar11

@AnkitRewar11 No problem at all, I was just checking whether you’re still working on it so the PR can keep moving forward. Thanks for the update!

KatalKavya96 avatar Jun 04 '26 17:06 KatalKavya96

Whenever you have some time, please review this PR. @saurabhraghuvanshii @rishiraj38 @Rajesh-Nagarajan-11

AnkitRewar11 avatar Jun 11 '26 21:06 AnkitRewar11

@rishiraj38 hello I verified all icons with the provided spreadsheet.

  • Made the AMD GPU icon white for better dark-mode visibility.
  • Updated Aerospike icon colors to match the spreadsheet.
  • Fixed a typo that was breaking the Vald white SVG.

Only fill colors and minor SVG markup were changed; no paths or structure were modified.

AnkitRewar11 avatar Jul 13 '26 10:07 AnkitRewar11

@Sbragul26 This is happening because of this line:

const darkModeIntegrationIcon = item.frontmatter.darkModeIntegrationIcon;

Earlier, this property didn't exist. I added darkModeIntegrationIcon later so that in dark mode we can use a dedicated white icon.

Previously, if darkModeIntegrationIcon wasn't set, it would fall back to the default colored icon, which isn't what we want in dark mode. Now those icons appear white, but there are still some icons that are showing in color. Those should also be updated to use darkModeIntegrationIcon so that all icons appear white consistently in dark mode.

AnkitRewar11 avatar Jul 15 '26 10:07 AnkitRewar11

Hi @Sbragul26 ,

Just to make sure I'm implementing it correctly should all icons appear white in dark mode, or should icons that don't have a dedicated white SVG keep their original colors?

I just want to keep the behavior consistent across all icons.

Thanks!

AnkitRewar11 avatar Jul 24 '26 07:07 AnkitRewar11