Skip to content

Loading bar hard to see when browser theme doesn't match our theme #3086

Open

Description

@david-crespo

I thought we had introduced a problem in #3061 with the color of the loading bar, but it turns out that we actually already had a pretty big problem with the color of the loading bar, and I just didn't realize because my Firefox has dark UI chrome.

The loading bar is only visible properly when both the chrome and the page theme match. When one is dark and the other is light, the loading bar is lost visually somehow in boundary.

2026-02-23-loading-bar-light-chrome.mp4
2026-02-23-loading-bar-dark-chrome.mp4

Originally posted by @david-crespo in #3061 (comment)

Activity

  1. benjaminleonard commented on Apr 1, 2026

    @benjaminleonard
    Contributor

    Not sure the juice is worth the squeeze here. In theory we could apply a class only if there's a mismatch:

    @media (prefers-color-scheme: dark) {
      [data-theme='light'] .global-loading-bar {
    

    But on my browser for example, the browser URL bar changes to the page but the frame matches the page. Anything we do is so conditional on an environment which is changing that we don't have control over. Feels brittle.

    Making it thicker makes it more visible across the board but is over-visible if they match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions