Closed Bug 2022115 Opened 5 months ago Closed 4 months ago

Tab Group Label does not respect touch density in vertical tab bar

Categories

(Firefox :: Tabbed Browser: Tab Groups, defect)

defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: tcbbdddd, Assigned: marycathln1, Mentored, NeedInfo)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [fidefe-sidebar][outreachy-sidebar-2026])

Attachments

(1 file)

In horizontal tab bar mode, the height of tab group label is larger in touch density than in normal density. But in vertical tab bar mode, the height of tab group label is always 24px, whether it is touch or normal density. This is not desired.

Component: Sidebar → Tabbed Browser: Tab Groups
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S3
Keywords: good-first-bug
Assignee: nobody → marycathln1

When tabs are horizontal, the tab group label size increases to 27px when uidensity="touch". We should do the same for vertical tabs mode.

You can switch to vertical tabs by right clicking the toolbar and selecting "Turn on vertical tabs".
You can switch to uidensity touch by navigating to about:config and setting browser.uidensity to 2.

Flags: needinfo?(marycathln1)

I was able to notice that in Firefox’s vertical tabs mode, the tab group label did not adjust its size when uidensity="touch" was enabled, unlike in horizontal tabs where the height increases from 24px to 27px. I used toolbox to identify the exact height and realized a hard corded height.
So i simply introduced a CSS variable (--tab-group-label-height) to replace hardcoded values and added a condition for touch density so the label dynamically updates to 27px. I have also applied this variable consistently across height, width, and line-height to ensure uniform behavior in both collapsed and expanded states.
The final result is now the vertical tab view is correctly responding to touch density, improving UI consistency and accessibility. here is the review link https://phabricator.services.mozilla.com/D289723. would be glad to get a feedback and make adjustments or take on another bug thank you.

Pushed by nsharpley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/66a9e6c09167 https://hg.mozilla.org/integration/autoland/rev/8ad4224f116e Tab Group Label does not respect touch density in vertical tab bar. r=nsharpley,desktop-theme-reviewers,tabbrowser-reviewers,sfoster
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Mentor: nsharpley
Whiteboard: [fidefe-sidebar][outreachy-sidebar-2026]
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: