Closed Bug 1922521 Opened 5 months ago Closed 5 months ago

Dragged tabs are no longer opaque when Dark theme is enabled

Categories

(Firefox :: Theme, defect, P2)

Firefox 133
defect

Tracking

()

VERIFIED FIXED
133 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox131 --- unaffected
firefox132 --- verified
firefox133 --- verified

People

(Reporter: gregp, Assigned: Gijs)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidefe-sidebar])

Attachments

(4 files)

Attached video translucent_tabs.webm

Steps to reproduce:

  1. Navigate to about:addons → Themes
  2. Enable Dark theme
  3. Open a new tab
  4. Start dragging a tab horizontally

Actual results:
The favicons and titles of other tabs are visible behind the tab being dragged

Expected results:
The dragged tab is opaque

I suppose this is a consequence of using semi-transparent background colours for the selected state.

Can we define a separate colour for the dragged state (e.g. by using a separate thing for the mousedown state), or does this mean we should go back to using an opaque colour here?

OS: Linux → All
Hardware: x86_64 → All
Severity: -- → S2
Priority: -- → P2
Whiteboard: [fidefe-sidebar]

(In reply to :Gijs (he/him) from comment #1)

I suppose this is a consequence of using semi-transparent background colours for the selected state.

Can we define a separate colour for the dragged state (e.g. by using a separate thing for the mousedown state), or does this mean we should go back to using an opaque colour here?

We could, but we probably don't want to extend the webextension theme API just for this; feels a bit too granular and this is supposed to be a simple API. A share of third-party themes likely had this issue for a long time, which in practice I suspect isn't too bad. In fact, from what I recall native drag feedback images are partly transparent on both Linux and Windows, so I guess this could be seen as a feature?! Though I agree this is nicer without or less transparency.

So how do we address this? I think we should mitigate and tweak the select tab background color again to have less transparency, i.e. see if we can get lower rgb component values and an alpha channel of, say, 0.7 or higher.

Flags: needinfo?(dao+bmo)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Flags: needinfo?(gijskruitbosch+bugs)
Flags: needinfo?(gijskruitbosch+bugs)
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/857ab9c9ee5b use less transparency for selected tabs in dark mode to make dragging better, r=desktop-theme-reviewers,dao
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Attachment #9430770 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Confusing tab drag experience
  • Code covered by automated testing: no
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Low
  • Explanation of risk level: CSS only fix
  • String changes made/needed: No
  • Is Android affected?: no
Attachment #9430770 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

I was able to reproduce the issue on Firefox 132.0b7, using Windows 11, while following the steps described in Comment 0.
Verified this on Firefox 132.0b8 and Firefox Nightly 133.0a1 (2024-10-17), using Windows 11, macOS 14.7 and Ubuntu 22.04. A subtle improvement in transparency can be observed when dragging a tab and the dark theme is enabled - please see the attached screenshot.
@Gijs, can you please confirm if the level of transparency is the desired one? Thank you in advance!

Flags: needinfo?(gijskruitbosch+bugs)

(In reply to Bianca Hidecuti, Desktop Test Engineering [:bhidecuti] from comment #9)

Created attachment 9431830 [details]
Level of transparency before (left) and after the fix (right)

I was able to reproduce the issue on Firefox 132.0b7, using Windows 11, while following the steps described in Comment 0.
Verified this on Firefox 132.0b8 and Firefox Nightly 133.0a1 (2024-10-17), using Windows 11, macOS 14.7 and Ubuntu 22.04. A subtle improvement in transparency can be observed when dragging a tab and the dark theme is enabled - please see the attached screenshot.
@Gijs, can you please confirm if the level of transparency is the desired one? Thank you in advance!

Yeah, I think we're more or less happy with this - it's not really straightforward to make them fully opaque, but for now this seems a reasonable compromise.

Flags: needinfo?(gijskruitbosch+bugs)

Thank you for the confirmation!
Based on Comment 9 and 10 I am marking this verified as fixed.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
See Also: → 1927038
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: