Files
fleet/frontend/components
Nico b6528db3ed Fix: Light mode logo gets applied in dark mode when the dark one is default + Logo backgrounds should be the same color as the navbar background (#45569)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #45554, Resolves #45555, Resolves #45557 

## Testing

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

#### Before

- Uploaded logo is used as a default even though it was uploaded for the
other mode.
- Logo preview cards do not match navbar's background.
<img width="1207" height="825" alt="dark-mode"
src="https://github.com/user-attachments/assets/0526aa33-9f43-4e7b-9c19-e490991b085a"
/>

#### After
- Uploaded logo is used only for the mode it was uploaded for.
- Logo preview card backgrounds are static: they always match the
navbar's background. (See
[Figma](https://www.figma.com/design/3oQUXGnjMCqX4U2B9nQ9X8/-39016-Ability-to-upload-a-custom-logo-served-from-my-Fleet-ins?node-id=5305-2589&t=YAckLtIgJCzLuHg1-0)
wireframes.)
<img width="1213" height="827" alt="Screenshot 2026-05-15 at 9 26 27 AM"
src="https://github.com/user-attachments/assets/c16d3919-d98b-4c53-9797-4b820d4c6c4c"
/>
<img width="1215" height="821" alt="Screenshot 2026-05-15 at 9 26 43 AM"
src="https://github.com/user-attachments/assets/f6ff83dc-127c-417b-a6ad-a1c6ce3e488e"
/>


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

## Summary by CodeRabbit

* **Style**
  * Improved logo display consistency across light and dark modes.
* Updated background colors for logo preview sections to enhance visual
appearance in both themes.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/fleetdm/fleet/pull/45569)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-05-15 15:19:47 +02:00
..
2026-05-11 16:29:25 -04:00
2026-05-05 20:28:29 -05:00
2026-05-05 20:28:29 -05:00