Skip to content

[UI] fix: enhance supporters logos for dark mode compatibility and remove duplicate link in support - #335

Open
devGPP23 wants to merge 1 commit into
kmesh-net:mainfrom
devGPP23:fix/supporters-dark-mode
Open

[UI] fix: enhance supporters logos for dark mode compatibility and remove duplicate link in support#335
devGPP23 wants to merge 1 commit into
kmesh-net:mainfrom
devGPP23:fix/supporters-dark-mode

Conversation

@devGPP23

Copy link
Copy Markdown

Problem:

  1. The supporter logos (Huawei and OpenEuler) were enclosed in hardcoded white rectangular boxes with borders. In dark mode, these bright white boxes felt visually inconsistent with the dark theme of the website.
  2. The Huawei logo was in PNG format, which restricted to adapt its color for different themes.
  3. An empty tag was mistakenly left in the Supporters component. Empty links are considered bad practice as they trigger accessibility warnings for screen readers and negatively impact SEO metrics by being flagged as hidden or broken links.

Solution:

  1. Replaced PNG with SVGs: Swapped the old PNG Huawei logo with a SVG format and added SVG assets for both supporters.
  2. Implemented Dynamic Theme using Docusaurus's component to switch between the original colored logos in light mode and their specialized white-text variants in dark mode.
    3)Removed the forced white backgrounds and borders from the .imgContainer in the SCSS file, allowing the logos to blend naturally into the website's background.
  3. Removed the redundant empty tag from index.js to ensure clean DOM rendering, better SEO, and 100% accessibility compliance.

…ers component

Signed-off-by: devGP7 <gauravpatil232005@gmail.com>
Copilot AI review requested due to automatic review settings July 22, 2026 15:20
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@kmesh-bot
kmesh-bot requested review from hzxuzhonghu and nlgwcy July 22, 2026 15:20
@netlify

netlify Bot commented Jul 22, 2026

Copy link
Copy Markdown

Deploy Preview for kmesh-net ready!

Name Link
🔨 Latest commit acbca91
🔍 Latest deploy log https://app.netlify.com/projects/kmesh-net/deploys/6a60dfd3d8fc7a00085eaea2
😎 Deploy Preview https://deploy-preview-335--kmesh-net.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kmesh-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign nlgwcy for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

This PR updates supporter logo rendering to improve dark-mode visuals and accessibility by switching to SVG assets and theme-aware image selection, and by removing an empty link element.

Changes:

  • Added light/dark SVG variants for Huawei and OpenEuler logos.
  • Updated the Supporters component to use Docusaurus ThemedImage for theme-based logo switching.
  • Removed forced white background/border styling around logos and deleted an empty <Link>.

Reviewed changes

Copilot reviewed 2 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
static/img/supporters/openEuler.svg Replaces the existing OpenEuler asset with a formatted SVG variant for light mode.
static/img/supporters/openEuler-dark.svg Adds a dark-mode-specific OpenEuler SVG with white fills for non-brand elements.
static/img/supporters/huawei.svg Adds an SVG Huawei logo for light mode.
static/img/supporters/huawei-dark.svg Adds a dark-mode Huawei SVG variant with white typography.
src/components/Supporters/index.scss Removes hardcoded white background/border so logos blend with theme backgrounds.
src/components/Supporters/index.js Uses ThemedImage + new assets and removes an empty <Link> element.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +42 to +48
<ThemedImage
alt={item.name}
sources={{
light: useBaseUrl(item.img_src),
dark: useBaseUrl(item.img_src_dark || item.img_src),
}}
/>
Comment on lines 55 to +56
}

@devGPP23

Copy link
Copy Markdown
Author
IMG-20260722-WA0072

New Images/logos are compatible with both themes and improve visual aspect of website
/cc @jayesh9747 @yashisrani @LiZhenCheng9527

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants