Skip to content

[DON-4181] Improve tooltip contrast in dark mode - #2916

Merged
Lokmane Krizou (LokmaneKrizou) merged 2 commits into
mainfrom
donburi/tooltip-dark-surface
Dec 3, 2026
Merged

Lokmane Krizou (LokmaneKrizou) merged 2 commits into
mainfrom
donburi/tooltip-dark-surface

Conversation

@LokmaneKrizou

@LokmaneKrizou Lokmane Krizou (LokmaneKrizou) commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Uses surfaceElevated for the rich tooltip so it stands out against the page in dark mode. Light-mode colours are unchanged. Refreshes the dark documentation image.

Follow-up to #2907 · DON-4181

Before After
Tooltip before: dark background blends into the page Tooltip after: elevated dark background

Validation: 20 tooltip tests passed; Compose lint and repository detekt passed. Docs images generated locally; checked in the Skyscanner debug app on an emulator. Test screenshot baselines left to CI.

To check: open Tooltip → Default in the demo app and compare light/dark mode.

  • Read contribution guidelines
  • Updated component documentation and relevant image
  • Existing tooltip tests pass

@LokmaneKrizou Lokmane Krizou (LokmaneKrizou) added the patch A backwards compatible change/fix label Dec 3, 2026
Copilot AI lite review requested due to automatic review settings December 3, 2026 15:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T15:20:20.417233Z 36c0972 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor
Warnings
⚠️ One or more component files were updated, but the tests weren't updated. If your change is not covered by existing tests please add snapshot tests.

Generated by 🚫 Danger Kotlin against b0f84d1

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

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.

Copilot review overview

1 open issue
What changed in this PR

Updates the Compose rich tooltip’s container background to improve contrast in dark mode, and documents the change.

Changes:

  • Switch rich tooltip containerColor to surfaceElevated.
  • Update Tooltip documentation to mention the elevated surface usage in dark mode.
File Description
docs/​compose/​Tooltip/​README.md Documents the tooltip’s use of surfaceElevated for dark-mode contrast.
backpack-compose/​src/​main/​kotlin/​net/​skyscanner/​backpack/​compose/​tooltip/​BpkTooltip.kt Changes rich tooltip container background to surfaceElevated.

Review effort: Lite

Copilot AI lite review requested due to automatic review settings December 3, 2026 15:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

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.

Copilot review overview

No open issues 🎉

1 resolved since last review

Review effort: Lite

@LokmaneKrizou
Lokmane Krizou (LokmaneKrizou) merged commit 3808f1c into main Dec 3, 2026
20 of 21 checks passed
@LokmaneKrizou
Lokmane Krizou (LokmaneKrizou) deleted the donburi/tooltip-dark-surface branch December 3, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch A backwards compatible change/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants