Closed Bug 1956394 Opened 1 year ago Closed 1 year ago

Tab groups are misaligned when using expand on hover with vertical tabs

Categories

(Firefox :: Tabbed Browser, defect, P1)

Firefox 140
defect
Points:
2

Tracking

()

VERIFIED FIXED
140 Branch
Tracking Status
firefox-esr128 --- disabled
firefox138 --- wontfix
firefox139 --- wontfix
firefox140 --- verified

People

(Reporter: patrice.grundmann, Assigned: sthompson)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-tabgrps-vertical] [UX-tabgrps-review])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0

Steps to reproduce:

Install Firefox Nightly.
Create some tabs, and some tabs groups.

Actual results:

The hover effect since it appear (the 20 march) in Nightly is very disturbing. Visual focus is lost between the favicon (with the tab folded) and its unfolded version, when there's a hover effect on the favicon.

Expected results:

The expected behavior, if there is already the possibility of visually finding one's way around tabs, would be that the display should be identical and persist regardless of whether the tabs are “open” or “closed”. Take a look at Microsoft Edge to see for yourself.

Here is the bug in a image (two screencaps). I have drawn red dotted lines to visualise the problem.

The Bugbug bot thinks this bug should belong to the 'Firefox::Sidebar' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Sidebar

Its not clear to me what the issue is - is it the misalignment with collapsed tabs vs expanded?

Do you have expand on hover enabled with vertical tabs? Do you also see this issue without tab groups?

Flags: needinfo?(patrice.grundmann)

Hello,

Yes, it's an alignment problem. The tabs should be the same height and displayed where you expect them to be. The user looks at the favicon of the retracted tab, but when he hovers over it with the mouse, the tab appears lower than expected. This is very uncomfortable to use.

So, in effect, is hover development enabled with vertical tabs and this problem only arises with the presence of tab groups. If only tabs are used, with no groups, they are placed one under the other and displayed as expected.

Regards

Flags: needinfo?(patrice.grundmann)

Thanks for clarifying. Expand on hover is a new feature so this probably just requires a small change by the tab groups team to fix the alignment.

Component: Sidebar → Tabbed Browser
Summary: Hover effect on vertical tabs is disturbing for the user → Tab groups are misaligned when using expand on hover with vertical tabs

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

For more information, please visit BugBot documentation.

Flags: needinfo?(mak)
Iteration: --- → 139.1 - Mar 31 - Apr 11
OS: Unspecified → Windows 11
Hardware: Unspecified → x86_64
Version: Firefox 138 → Firefox 139

The bug still exists, but it looks now better.

I don't know how to precise de severity. I have try to edit the first message.

Severity: -- → S4
Flags: needinfo?(mak)

:amlee could you please check Nightly with the following setup/prefs and provide feedback on what our team should fix?

  • sidebar.verticalTabs = true
  • sidebar.expandOnHover = true
  • tab strip includes tab groups with grouped tabs and visible favicons

At a glance, the expanded state has a wider left gutter before the tab group hairline and the tab group label takes up more vertical space.

Blocks: 1907534
Flags: needinfo?(amlee)
Whiteboard: [fidefe-tabgrps-vertical] [UX-tabgrps-review]

Yes :sthompson I confirm all.

Iteration: 139.1 - Mar 31 - Apr 11 → ---
Severity: S4 → S3
OS: Windows 11 → All
Hardware: x86_64 → All

Hi,

I think part of the issue is the transition between collapsed and expanded sidebar isn't to spec and is janky. There's currently no animation sliding between the 2 states. I had previously filed a bug for this below.

https://bugzilla.mozilla.org/show_bug.cgi?id=1959264

Flags: needinfo?(amlee)

The tabs in the vertical tab strip always have the same height regardless of whether the sidebar is collapsed or expanded. When expand-on-hover is enabled, it's easy to see that the tabs only change in width as you go back and forth from collapsed to expanded.

The tab group label element is using a line-height of 18px when expanded plus 4px block padding, totalling 26px high. When the sidebar is collapsed, the tab group label's first letter uses 24px line height and the label has no padding, totalling 24px high. When you expand the sidebar, everything below a tab group label appears to shift down by 2px, and this compounds for every tab group label in the tab strip.

This patch makes the tab group label element box take up 24px in height with default UI density and compact UI density. With touch UI density, tab group labels are 27px tall with expanded sidebar and 28.5px tall with collapsed sidebar. Negative padding would be required for the expanded case, but the padding is 0.

As a result, tabs and tab group labels now always retain their vertical positions and heights when transitioning between expanded sidebar and collapsed sidebar. The one exception is when the user has touch UI density with browser.uidensity = 2

Assignee: nobody → sthompson
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Blocks: 1964442
Pushed by sthompson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8e679d9052f3 vertical tab groups label should always have same height r=dao,desktop-theme-reviewers,tabbrowser-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch

I wasn't sure about the Nightly deployment. Because I contend that the work is only partial. Hovering on reduced tabs doesn't necessarily display as well as on Edge, for example. I think it's the containers that are messing things up. They need to add some kind of padding, or something similar. In short, hovering over reduced tabs makes them display lower and more to the right. They sort of ripple.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Version: Firefox 139 → Firefox 140

In fact, I have 12 groups of tabs, and the shift occurs towards the end of the list of these groups. When you hover over a tab group, aiming at the middle of its height, the sidebar unfolds and the cursor is at the bottom of its label. There's an offset.

Here is the gap example: https://ibb.co/xqBbYrbF

Hey Patrice, could you please file a separate followup bug for the remaining issue you found? That will make it easier to separate concerns and keep track of the patch that has landed here. Thanks!

Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Flags: needinfo?(patrice.grundmann)
Resolution: --- → FIXED

Well, I'm not lazzy to recreate a bug report… https://bugzilla.mozilla.org/show_bug.cgi?id=1964923

Flags: needinfo?(patrice.grundmann)
Points: --- → 2
Priority: -- → P1
Blocks: 1964923

This issue is Verified as fixed in our latest Nightly 140.0a1 (2025-05-12)

QA Whiteboard: [qa-ver-needed-c140/b139]
QA Contact: rdoghi

The patch landed in nightly and beta is affected.
:sthompson, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(sthompson)
Flags: needinfo?(sthompson)

Updating the remaining flags.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-needed-c140/b139] → [qa-ver-done-c140/b139]
Regressions: 1966672
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: