Closed Bug 2084984 Opened 23 days ago Closed 15 days ago

Adjust sidebar width to accommodate scrollbar if using non-overlay scroll bars with vertical tabs

Categories

(Core :: Widget, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: sclements, Assigned: kcochrane)

References

Details

(Whiteboard: [fidefe-sidebar])

Attachments

(1 external file)

Vertical tabs has used the thin scrollbars since implementation a few years ago but now with nova styling changes the scrollbar is noticeably cutting into some of the styling when in the collapsed state because of how much space it needs to occupy along side the tabs (depending on OS scrollbar setting - on mac its obvious without the overlay). The thin scrollbars aren't consistently the same width across platforms so the request is to adjust this width for both windows and mac.

Values for mac are here and here needs changing from talking to Emilio. I'm asking UX for input on this.

:spohl, I'm curious why the values for mac are different based on whether its an overlay or not (and if there's a reason we should just change the non-overlayed scrollbar)?

Flags: needinfo?(spohl.mozilla.bugs)

Whoever picks this up, you'll need to adjust some special-casing styles added in bug 2049500 in regards to scrollbar width per platform

Assignee: nobody → kcochrane
Status: NEW → ASSIGNED

The different sizes come from matching the native macOS scrollbar variants. We originally implemented scrollbar-width: thin using the native small scrollbar in bug 1484565. Bug 1568939 comment 3 also discusses why those sizes differ across platforms.

I checked the native sizes on macOS 27.2, and they appear larger than the values we're currently using, so we may want to revisit those separately.

I'm open to adjusting thin scrollbars for cramped areas like collapsed vertical tabs, but I'd be cautious about changing them everywhere to solve this particular layout issue. Could we consider a change specific to vertical tabs, similar to the scrollbar styling adjustment in bug 1922343?

Whichever approach we choose, I think the scrollbar should remain easy to grab and drag with a pointer. I'd also be cautious about forcing overlay scrollbars for users who've explicitly chosen always-visible scrollbars.

Severity: -- → S3
Flags: needinfo?(spohl.mozilla.bugs)

I think the idea was to adjust the thin scrollbars generally. Are there native thin scrollbars? I don't think so?

Yes, macOS has a native small scrollbar variant. It's mentioned in Apple's current HIG as "small" (or "mini") scrollbars: https://developer.apple.com/design/human-interface-guidelines/scroll-views

I also checked actual native NSScrollView instances on macOS 27.2. With NSScroller.controlSize set to .small, the scrollbar widths were 13 points for non-overlay and 15 points for overlay, compared with 17 points for both regular variants. This is the native variant we originally mapped scrollbar-width: thin to in bug 1484565.

My concern is how far we'd diverge from that native small variant.

Whiteboard: [fidefe-sidebar]
Attachment #9666928 - Attachment description: Bug 2084984 - Update thin scrollbars to be thinner and more consistent across platforms → Bug 2084984 - Increase sidebar width to accommodate overlay scrollbars with vertical tabs
Summary: Consider making the thin scrollbars thinner → Adjust sidebar width to accommodate scrollbar if using overlay scroll bars with vertical tabs

We've decided to increase the width of the sidebar only in the case that non-overlay scroll bars are being used with overflowing vertical tabs. We will add 2px of space to the inline-end of vertical tabs for this.

Summary: Adjust sidebar width to accommodate scrollbar if using overlay scroll bars with vertical tabs → Adjust sidebar width to accommodate scrollbar if using non-overlay scroll bars with vertical tabs
Attachment #9666928 - Attachment description: Bug 2084984 - Increase sidebar width to accommodate overlay scrollbars with vertical tabs → Bug 2084984 - Increase sidebar width to accommodate non-overlay scrollbars with vertical tabs
Blocks: 2087212
Pushed by kcochrane@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c0e8cca06c08 https://hg.mozilla.org/integration/autoland/rev/5934eb172248 Increase sidebar width to accommodate non-overlay scrollbars with vertical tabs r=emilio,spohl,desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,jsudiaman
Status: ASSIGNED → RESOLVED
Closed: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: