fix: improve integration logo visibility in dark and light mode
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
darkModeIntegrationIconreference 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:namedviewtags from both color and white SVGs that were causing rendering issues in dark mode - Ngrok: Fixed empty
clipPathin 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
- [x] Yes, I signed my commits.
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.
@AnkitRewar11, could you please make a commit so the preview can be built?
@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:
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.
@saurabhraghuvanshii @Rajesh-Nagarajan-11 Please take a look at this PR.
@KatalKavya96 Hey, sorry for the delay. I'll get back to working on this and resume it as soon as possible.
@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!
Whenever you have some time, please review this PR. @saurabhraghuvanshii @rishiraj38 @Rajesh-Nagarajan-11
@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.
@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.
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!