Closed Bug 2084382 Opened 1 month ago Closed 1 month ago

Fire button hover animation turns grayish between its two gradients in dark mode

Categories

(Firefox :: Theme, defect, P3)

defect

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: jleritte, Assigned: jleritte)

References

Details

Attachments

(1 external file)

The fire button's hover animation (behind browser.fireButton.enabled, added in bug 2076799) goes through a grayish, desaturated step between the bright flare gradient and the lighter settled gradient. It is most visible in dark mode; light mode has a milder version of it.

Steps to reproduce:

  1. Set browser.fireButton.enabled to true and restart, with a dark theme.
  2. Hover the fire button in the toolbar.

Expected: the flame goes straight from the bright gradient to the light one.
Actual: halfway through the settle, the flame looks dull and grayish.

The flame is three stacked layers (fire-button-flame-rest, -flare, -settled) in browser/themes/shared/toolbarbutton-icons.css. During the settle, the flare fades out while the settled layer fades in on top of it, so at the midpoint about a quarter of the toolbar hover background shows through the flame. Measured in dark mode, the flame's average saturation drops from 92% at the flare peak to 43% at 400ms before recovering. The grow phase (purple to flare) has the same issue, briefly.

Fix: keep the lower layer fully opaque while the upper one fades in over it, and hide it only once it is covered. Colors, timing and shapes stay the same. The designer has signed off on the fix.

The flare faded out while the settled flame faded in on top of it, so halfway through the settle about a quarter of the hover background showed through, turning the flame grayish in dark mode. The purple flame and the flare had the same issue during the grow. Each layer now stays opaque until the one fading in above it covers it.

Severity: -- → S4
Priority: -- → P3
Pushed by jleritte@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/613a00268881 https://hg.mozilla.org/integration/autoland/rev/2ae43dc7b28e Keep the background from showing through the fire button's hover animation while its colors cross-fade. r=desktop-theme-reviewers,akulyk
Status: ASSIGNED → RESOLVED
Closed: 1 month 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: