Skip to content

fix(docs): drop the driver cards' white image panel in dark mode - #632

Open
arsenovic wants to merge 1 commit into
mainfrom
issue-631-dark-driver-cards
Open

arsenovic wants to merge 1 commit into
mainfrom
issue-631-dark-driver-cards

Conversation

@arsenovic

Copy link
Copy Markdown
Collaborator

Closes #631.

In dark mode, the product photos on the driver cards (instruments and each category page) sat on a white panel. The same photos on the driver pages (e.g. Keysight1200X) show on the page's dark background.

Cause

docs/_static/custom.css gave .driver-card .sd-card-img-bottom a hard-coded background: #fff, carried over from the light-only Mintlify cards. The driver-page image (img.driver-image) sets no background.

Change

  • docs/_static/custom.css: under html.dark, the card image background is transparent. Light mode keeps the white panel.

52 of the 54 driver photos are RGBA PNGs, so they show cleanly on the dark card. docs/daq/MCCDriver.png is plain RGB, so it keeps its own baked-in background in both places, as it already does on its driver page.

Why no test

This is a CSS-only change. There's no test harness for rendered styles; I checked it visually instead (below).

Testing

🤖 Generated with Claude Code

The card images had a hard-coded white background, left from the
light-only Mintlify cards, so in dark mode each photo sat on a white
panel. The photos are transparent PNGs, so show them on the card, as the
driver pages already do. Light mode keeps the white panel.

Closes #631

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @arsenovic's task in 54s —— View job


Code Review

  • Gather context (PR diff, repo conventions)
  • Run code review
  • Post findings

Summary: Small, well-scoped CSS fix (4 lines, one file). The dark-mode override targets the same selector the light-mode rule already uses, the explanatory comment matches the file's existing comment style (why, not what), and the "no test" rationale in the PR body is appropriate for a CSS-only visual change with no test harness for rendered styles. No driver/API/docs-sync concerns apply here — this isn't a new driver or public API change.

No inline findings — nothing to flag.

@greptile-apps

greptile-apps Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Removes the white background behind driver-card photos in dark mode.

  • Dark-mode driver cards show photos without a white panel.

No actionable issues found. Visual capture was blocked because the checkout has no built docs or installed theme source.

Reviews (1) · Last reviewed commit: "fix(docs): drop the driver cards' white ..." · Reviewed by Greptile

This branch has not been deployed

No deployments
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.

Driver card images have a white background in dark mode

1 participant