# Bug DREAM-528 - When logging out, display shortly defaults to light mode before detecting OS display mode

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-528

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system, Frontend components and Primer design system / Dark/high contrast mode |
| Target versions | 17.0.0 |
| Observed in versions | 16.6.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.6.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Behrokh Satarnejad |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as any type of user but on a computer with dark mode

2.  Logout

### What is the buggy behaviour?

  - Display mode defaults to light mode before switching

  - The defaulting takes long enough that it's noticeable

### What is the expected behaviour?

1.  Either remove the defaulting to light mode or make the light mode appearance shorter/less noticeable

### 

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/796126/content">

### Environment information

**OpenProject version**

Core build

[8be53a8c6c342cb1fa8db378fe9b092ff7521624](https://github.com/opf/openproject/commits/8be53a8c6c342cb1fa8db378fe9b092ff7521624)

Product version

[757b160994d7a0c490ec4cdc7e6571c7b1dca270](https://github.com/opf/saas-openproject/commits/757b160994d7a0c490ec4cdc7e6571c7b1dca270)

Core version

OpenProject 16.6.0

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [x] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)
