dark mode tweaks - #43675
Conversation
c2addd0 to
fd23a68
Compare
…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
fd23a68 to
3782359
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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.
|
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. |
…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 -->
Logo
Changed logo from white to the default one

Selection
Added a ::selection pseudo-class style that overrides the default blue-ish background on selected text. Now it's a green-ish background.

This also applies on light mode but happy to leave it only for dark.

Inputs
Tweaked the input's text color to be more on the white side rather than gray (better contrast)

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