Closed Bug 2055119 Opened 3 months ago Closed 2 months ago

[Nova] Incorrect margin block of tabs in compact mode

Categories

(Firefox :: Tabbed Browser, defect, P1)

Firefox 154
defect
Points:
1

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: mercichao, Assigned: kcochrane)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-nova])

Attachments

(1 file)

It should be --tab-margin-block:

  @media -moz-pref("browser.nova.enabled") {
    &[uidensity="compact"] {
      --tab-block-margin: 4px;
    }
  }
Blocks: nova-compact
Whiteboard: [fidefe-nova]

--tab-block-margin was a local CSS property that we used in tabs.css.

--tab-margin-block is a local design token https://searchfox.org/firefox-main/search?q=--tab-margin-block&path=&case=true&regexp=false introduced more recently.

Looks like bug 2030953 used the old --tab-block-margin name for new code. We should use --tab-margin-block and make sure compact mode still looks correct.

Points: --- → 1
Priority: -- → P1
See Also: → 2030953
Assignee: nobody → kcochrane
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee: kcochrane → nobody
Status: ASSIGNED → UNCONFIRMED
Ever confirmed: false
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → kcochrane
Status: NEW → ASSIGNED

Please note that the gUIDensity.AUTO_COMPACT_REFERENCE_TABSTRIP_HEIGHT also needs to be updated. It should be 28 + 4 * 2 = 36, not 40, which is based on the wrong margin value.

Pushed by kcochrane@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e0c09cc29cb8 https://hg.mozilla.org/integration/autoland/rev/c1aa2d77fca3 Switch --tab-block-margin to --tab-margin-block in tabs.css r=desktop-theme-reviewers,tabbrowser-reviewers,jswinarton,Itiel
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
See Also: → 2058569
QA Whiteboard: [qa-triage-done-c156/b155]
Regressions: 2077541
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: