Open Bug 2058936 Opened 1 month ago Updated 20 days ago

Triple borders between the toolbar and the content if sidebar.revamp is false and the UI density is compact

Categories

(Firefox :: Theme, defect, P3)

defect

Tracking

()

People

(Reporter: arai, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fidefe-post-nova])

Attachments

(2 files)

Attached image borders and gap

Steps to reproduce:

  1. Set the macOS system theme to Dark
  2. Run Nightly 155.0a1 (2026-07-29) (aarch64) on macOS with clean profile
  3. Open about:preferences#appearance
  4. Choose "Window density" -> "Compact"
  5. Open about:preferences#tabsBrowsing
  6. Uncheck "Browser layout" -> "Show sidebar"
  7. Unfocus the window

Actual result:
At step 6, notice that the light border of the toolbar becomes dark, and there's 4px border (actually 1px dark + 2px semi-dark + 1px dark, but not really distinguishable) remains between the toolbar and the content area.
At step 7, there are 1px dark, 2px semi-light, 1px dark borders, which looks something is broken. It feels like the borders are actually gaps, and the gap is a collapsed extra-toolbar or something.

At least the styling doesn't reflect the new nova UI design where the toolbar and content have borders, with a gap between them, because the
border and the gap has the same color when the window is focused, and the gap becomes lighter when unfocused.

Expected result:
only 1-2px border/gap between the toolbar and the content, or perhaps make the contrast between the border vs the gap higher?

The border color difference comes from the following 2 definitions, where the former is used by default, and the latter is used once the sidebar.revamp is disabled

https://searchfox.org/firefox-main/rev/272c6937c93bf6c3f132ce962d9ad7d798fce830/browser/themes/shared/browser-colors.css#21,35-39,59,66-67,72-76

:root {
...
  @media -moz-pref("browser.nova.enabled") and (not (forced-colors)) {
    &:is([theme-in-app], :not([lwtheme])) {
      --chrome-content-separator-color: light-dark(rgb(201, 192, 227), rgb(63, 62, 66));
    }
  }
...
}
...
@media not ((forced-colors) or (-moz-native-theme)) {
  :root:not([lwtheme]) {
...
    @media not -moz-pref("sidebar.revamp") {
      --chrome-content-separator-color: light-dark(rgb(204, 204, 204), hsl(240, 5%, 5%));
    }
  }
}

Seems expected, but I'll let the nova frontend team triage this.

Blocks: nova-chrome
Whiteboard: [fidefe-nova]

With the light theme, the border is always dark enough and the gap is light enough so that it's clearer the 4px space is 1px border + 2px gap + 1px border, both for sidebar.revamp==true and false cases.
Perhaps the separator color for the dark + sidebar.revamp==false need to be lighter?

If the sidebar.revamp is set to false, some borders become darker, but some other borders remain lighter.
The attached screenshot shows that the border above the bookmark toolbar is dark, but the border above the notification is light.

I don't see the similar effect on light theme.

Thanks for the report. I'm not sure offhand about the design spec, so we'll need to look later and confirm.

Priority: -- → P3
Whiteboard: [fidefe-nova] → [fidefe-post-nova]

The severity field is not set for this bug.
:jules, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jules)

The severity field is not set for this bug.
:jules, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jules)

We may be making some design changes to this gap between the toolbar and content area, and we are very likely to remove the gap entirely with compact UI density. I'll try to link it up to any related bugs if we file them in the near future.

Severity: -- → S4
Flags: needinfo?(jules)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: