Skip to content

Fleet UI: Dark mode tweaks 1 - #43422

Merged
RachelElysia merged 2 commits into
mainfrom
42977-dark-mode-followup1
Apr 10, 2026
Merged

Fleet UI: Dark mode tweaks 1#43422
RachelElysia merged 2 commits into
mainfrom
42977-dark-mode-followup1

Conversation

@RachelElysia

@RachelElysia RachelElysia commented Apr 10, 2026

Copy link
Copy Markdown
Member

Issue

Closes #42977

Description

Iterations

  • Fix tooltip link underline/icon color
  • Fix disabled dropdown wrapper color (super noticeable in dark mode)
  • Fix SQL editor to use variables, and remove uneccessary dark mode styling
  • Fix gitops mode indicator styling
  • Make transition of scrollable table wider and turn white in dark mode
  • Fix unsupported screensize background color to be dark in dark mode

Testing

  • QA'd all new/changed functionality manually

Summary by CodeRabbit

  • Style
    • Updated styling for tooltips and link variants with refined color handling.
    • Improved SQL editor theme color consistency using dynamic properties.
    • Enhanced dropdown disabled state visibility with adjusted text colors.
    • Refined dark-mode shadow colors for better visual consistency.
    • Adjusted table shadow transition effects for improved visual appearance.

@codecov

codecov Bot commented Apr 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.88%. Comparing base (4b659bd) to head (b133891).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #43422   +/-   ##
=======================================
  Coverage   66.88%   66.88%           
=======================================
  Files        2590     2590           
  Lines      207632   207635    +3     
  Branches     9323     9326    +3     
=======================================
+ Hits       138871   138874    +3     
  Misses      56130    56130           
  Partials    12631    12631           
Flag Coverage Δ
frontend 54.77% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@RachelElysia
RachelElysia marked this pull request as ready for review April 10, 2026 19:50
@RachelElysia
RachelElysia requested a review from a team as a code owner April 10, 2026 19:50
Copilot AI review requested due to automatic review settings April 10, 2026 19:50

@claude claude Bot 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.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@lukeheath lukeheath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! 💖

@coderabbitai

coderabbitai Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

This pull request contains multiple styling and component refinements across the Fleet frontend. Changes include: updating CustomLink tooltip styling to use static white colors, replacing hard-coded colors with CSS custom properties in the SQL editor theme, adjusting shadow transition widths in the DataTable component, adding disabled state color handling in the dropdown wrapper, restructuring the GitOps mode indicator's DOM hierarchy with updated styles, removing the background color from the unsupported screen size overlay, and updating the dark-mode shadow color variable. These modifications align with dark mode theme work and standardize color usage across components.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Fleet UI: Dark mode tweaks 1' clearly summarizes the main change—addressing UI styling improvements related to dark mode across multiple components.
Description check ✅ Passed The PR description addresses the template requirements with a linked issue, clear description of iterations/fixes, and confirmation of manual QA testing.
Linked Issues check ✅ Passed All code changes directly address the marked follow-up items in issue #42977: tooltip/icon colors [CustomLink], dropdown disabled text [DropdownWrapper], SQL editor variables [theme.css], GitOps indicator styling [SiteTopNav], table shadow width [DataTable], and unsupported screen background [UnsupportedScreenSize].
Out of Scope Changes check ✅ Passed All file changes align with the dark mode follow-up objectives; no unrelated modifications to other systems, configs, or logic beyond the specified UI styling improvements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 42977-dark-mode-followup1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@frontend/components/SQLEditor/theme.css`:
- Line 188: The editor base text color uses var(--ui-fleet-black-33) which is
too low contrast on the dark-mode editor background; update the CSS rule that
currently sets color: var(--ui-fleet-black-33) to use a higher-contrast token
(e.g., a darker token such as --ui-fleet-black-45 or --ui-fleet-black-60 or
another token that meets WCAG AA for 14px body text) so the editor base text
contrast passes AA; locate the occurrence of var(--ui-fleet-black-33) in
theme.css and replace it with the chosen higher-contrast variable.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 876eb679-31b6-4ef5-887b-bc5ffed846d8

📥 Commits

Reviewing files that changed from the base of the PR and between 98dc201 and b133891.

📒 Files selected for processing (8)
  • frontend/components/CustomLink/_styles.scss
  • frontend/components/SQLEditor/theme.css
  • frontend/components/TableContainer/DataTable/_styles.scss
  • frontend/components/forms/fields/DropdownWrapper/DropdownWrapper.tsx
  • frontend/components/top_nav/SiteTopNav/SiteTopNav.tsx
  • frontend/components/top_nav/SiteTopNav/_styles.scss
  • frontend/layouts/UnsupportedScreenSize/_styles.scss
  • frontend/styles/var/colors.scss
💤 Files with no reviewable changes (1)
  • frontend/layouts/UnsupportedScreenSize/_styles.scss


body.dark-mode .ace-fleet .ace_keyword {
color: #b3b6c1;
color: var(--ui-fleet-black-33);

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.

⚠️ Potential issue | 🟠 Major

Increase dark-mode editor base text contrast.

Line 188 uses --ui-fleet-black-33 for default text, which is low contrast on the dark editor background (--core-fleet-white from Line 34 in dark mode). This is roughly ~3.1:1 and can miss WCAG AA for 14px body text.

Proposed fix
 body.dark-mode .ace_editor.ace-fleet {
-  color: var(--ui-fleet-black-33);
+  color: var(--ui-fleet-black-75);
 }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@frontend/components/SQLEditor/theme.css` at line 188, The editor base text
color uses var(--ui-fleet-black-33) which is too low contrast on the dark-mode
editor background; update the CSS rule that currently sets color:
var(--ui-fleet-black-33) to use a higher-contrast token (e.g., a darker token
such as --ui-fleet-black-45 or --ui-fleet-black-60 or another token that meets
WCAG AA for 14px body text) so the editor base text contrast passes AA; locate
the occurrence of var(--ui-fleet-black-33) in theme.css and replace it with the
chosen higher-contrast variable.

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.

Pull request overview

Updates Fleet UI styling to polish dark mode behavior across tooltips, dropdowns, the SQL editor, GitOps mode indicator, table scroll shadows, and the unsupported screen size overlay.

Changes:

  • Adjust dark-mode color variables and table scroll-shadow transition widths/colors.
  • Refactor GitOps mode indicator markup/styles and improve tooltip link/icon contrast.
  • Update SQL editor and dropdown styles to use theme variables and improve disabled states.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
frontend/styles/var/colors.scss Tweaks dark-mode --ui-shadow to better match dark surfaces.
frontend/layouts/UnsupportedScreenSize/_styles.scss Changes unsupported-screen overlay styling (removes hardcoded white background).
frontend/components/top_nav/SiteTopNav/SiteTopNav.tsx Refactors GitOps mode indicator trigger markup inside tooltip.
frontend/components/top_nav/SiteTopNav/_styles.scss Updates GitOps mode indicator styles to match new markup.
frontend/components/TableContainer/DataTable/_styles.scss Widens scroll-shadow transition and reformats gradients for readability.
frontend/components/SQLEditor/theme.css Converts editor theme colors to CSS custom properties; removes most dark-mode overrides.
frontend/components/forms/fields/DropdownWrapper/DropdownWrapper.tsx Fixes disabled dropdown single-value color in generated react-select styles.
frontend/components/CustomLink/_styles.scss Ensures tooltip/flash links (underline + external icon strokes) stay light on dark tooltip surfaces.

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

@@ -3,7 +3,6 @@
width: 100%;
height: 100%;
z-index: 3;

Copilot AI Apr 10, 2026

Copy link

Choose a reason for hiding this comment

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

Removing the background-color from the .unsupported-screen-size overlay makes the small-screen blocker transparent, so the underlying UI will show through (and in light mode may no longer appear as an overlay at all). Instead of removing it, set a themed background color (e.g., using existing CSS custom properties/SCSS aliases like $core-fleet-white / $ui-light-grey) so it remains opaque in both light and dark mode.

Suggested change
z-index: 3;
z-index: 3;
background-color: $ui-light-grey;

Copilot uses AI. Check for mistakes.
@RachelElysia
RachelElysia merged commit 49b1b61 into main Apr 10, 2026
23 checks passed
@RachelElysia
RachelElysia deleted the 42977-dark-mode-followup1 branch April 10, 2026 20:12
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.

Add dark theme to Fleet user interface

4 participants