Skip to content

dark mode tweaks - #43675

Closed
nulmete wants to merge 4 commits into
hackathon-ui-polishfrom
nulmete/dark-mode
Closed

dark mode tweaks#43675
nulmete wants to merge 4 commits into
hackathon-ui-polishfrom
nulmete/dark-mode

Conversation

@nulmete

@nulmete nulmete commented Apr 16, 2026

Copy link
Copy Markdown
Member

Logo

Changed logo from white to the default one
Screenshot 2026-04-16 at 11 24 31 AM

Selection

Added a ::selection pseudo-class style that overrides the default blue-ish background on selected text. Now it's a green-ish background.
Screenshot 2026-04-16 at 11 25 02 AM

This also applies on light mode but happy to leave it only for dark.
Screenshot 2026-04-16 at 11 34 44 AM

Inputs

Tweaked the input's text color to be more on the white side rather than gray (better contrast)
Screenshot 2026-04-16 at 11 25 32 AM

Screenshot 2026-04-16 at 11 31 26 AM

Box-shadows

Removed box-shadows since dark shadows are invisible against dark backgrounds, so they're just rendering waste.

…verlays

- Input text: $core-fleet-blue -> $core-fleet-black for readable text in dark mode
- Active tab underlines: $core-fleet-black -> $core-fleet-green (matches Figma)
- Top nav active underline: same green fix
- Fleet logo: stop inverting default logo in dark mode
- Dropdown menus: elevated surface color + border in dark mode
- Radio buttons: brighter unselected border ($ui-fleet-black-25)
- TargetsInput: use $loading-overlay instead of hardcoded white, remove light shadows
- Global: add ::selection style, fix autofill bg for dark mode, mute card shadows
- Bump --ui-fleet-black-50 dark value for better placeholder contrast
@codecov

codecov Bot commented Apr 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.91%. Comparing base (bbb6bc9) to head (a39a34e).
⚠️ Report is 1 commits behind head on hackathon-ui-polish.

Additional details and impacted files
@@                 Coverage Diff                  @@
##           hackathon-ui-polish   #43675   +/-   ##
====================================================
  Coverage                66.91%   66.91%           
====================================================
  Files                     2600     2600           
  Lines                   208386   208386           
  Branches                  9181     9181           
====================================================
  Hits                    139432   139432           
  Misses                   56281    56281           
  Partials                 12673    12673           
Flag Coverage Δ
frontend 54.77% <ø> (ø)

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.

@nulmete
nulmete marked this pull request as ready for review April 16, 2026 16:42
@nulmete
nulmete requested a review from a team as a code owner April 16, 2026 16:42

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

@nulmete nulmete changed the title dark mode polish dark mode tweaks Apr 16, 2026
@lukeheath

Copy link
Copy Markdown
Member

Thanks for pointing these out! We ended up with conflicting changes because I was changing the same things, so I'm going to close this out.

@lukeheath lukeheath closed this Apr 17, 2026
nulmete added a commit that referenced this pull request May 6, 2026
…corners (#44771)

**Related issue:** N/A — ad-hoc dark-mode polish (revives fixes from the
closed #43675)

## Summary

- **Error pages (403/404/500)**: replaced hardcoded `#333` body text
with `$core-fleet-black` so the copy adapts to dark mode.
- **Dropdown menu border**: added border to `ActionsDropdown` ONLY in
dark mode (light mode already has a box-shadow which in dark mode is
basically not visible so it's hard to distinguish what's in front and
what's behind when opening a dropdown).
- **Table bottom-right corner**: tables such as UsersTable have the
Actions dropdown in the last cell, and I think this made the
bottom-right corner to be cut because of a missing border-radius on the
inner cell that matches the table's border radius.

# Checklist for submitter

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] QA'd all new/changed functionality manually

| # | Before | After |
  |---|--------|-------|
| Not found page | <img height="700" alt="Screenshot 2026-05-06 at 3 43
44 PM"
src="https://github.com/user-attachments/assets/c52b7bf8-6c5e-4e2e-8635-6f660c59ee90"
/> | <img height="700" alt="Screenshot 2026-05-06 at 3 35 03 PM"
src="https://github.com/user-attachments/assets/e92c324f-92a9-4e5e-a048-ab2b1d3c87a3"
/> |
| Access denied page | <img height="700" alt="Screenshot 2026-05-06 at 3
43 58 PM"
src="https://github.com/user-attachments/assets/9093f51a-e8ce-495b-9820-37ab5a7ff4cf"
/> | <img height="700" alt="Screenshot 2026-05-06 at 3 34 54 PM"
src="https://github.com/user-attachments/assets/3b9fe930-0ba1-4d48-824b-1b2cda713211"
/> |
| ActionsDropdown border + Table bottom corners (*) | <img height="700"
alt="Screenshot 2026-05-06 at 3 46 35 PM"
src="https://github.com/user-attachments/assets/c16b5a52-4746-4603-9f26-92be82f24225"
/> | <img height="700" alt="Screenshot 2026-05-06 at 3 31 33 PM"
src="https://github.com/user-attachments/assets/0a77cc95-40c4-43d2-9c6b-24c81782b275"
/> |
  
(*) Note that in the Users table, which has the Actions dropdown, the
right bottom corner is cut because the inner element doesn't respect the
table's border radius. Fixed this by adding the same border-radius to
that cell.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Fixed a display issue where data table bottom-right corners were being
cut off, ensuring complete visibility of table content.
* Improved dark mode contrast and readability on error pages (403, 404,
and 500 errors).

* **New Features**
* Added visual borders to dropdown menus for improved clarity and user
interaction feedback.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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.

3 participants