Closed Bug 1807131 Opened 2 years ago Closed 1 years ago

Add Button Ripples Animations to Dialog and Snackbar Buttons

Categories

(Fenix :: General, enhancement)

All
Android
enhancement

Tracking

(firefox113 wontfix, firefox114 wontfix, firefox115 verified)

VERIFIED FIXED
115 Branch
Tracking Status
firefox113 --- wontfix
firefox114 --- wontfix
firefox115 --- verified

People

(Reporter: csadilek, Assigned: lucius)

Details

Attachments

(3 files)

From github: https://github.com/mozilla-mobile/fenix/issues/9516.

Why/User Benefit/User Problem

It's a visual improvement that enhances look and feel of the graphical user interface. This is a common feature for Material Design that gives feedback to the user when they interact with a button. That behavior is known and expected by users. Missing button animations for dialogues and snackbars in Fenix is a regression from Fennec.

What/Requirements

Add the standard button animations from Android as known from Fennec to Fenix when interacting with buttons of dialogues and the button on snackbars:

  • holding down the button by tapping it without releasing it
    Animation: slowly fade in marking (see screenshots)
  • releasing the button without activating it by moving away from it
    Animation: display circular animation that increases in size while fading out (see screenshots)
  • activating the button by releasing it
    Animation: fade out marking

Acceptance Criteria (how do I know when I’m done?)

If interaction with buttons of all dialogues and all snackbars is animated.

Screenshots (6)

  • Fenix, missing animations:


  • Fennec, common animations:




┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

Severity: -- → N/A

Seems like ?android:attr/colorControlHighlight does not seem to be working in light mode. (Possible cause of https://github.com/mozilla-mobile/fenix/issues/14009)

From the Android sources (taken from AOSP):
This color is:
Light mode: #1F000000 (12% alpha on black)
Dark mode: #33FFFFFF (20% alpha on white)

Seems doable to add this to a ripple drawable (in both drawable and drawable_night)

Seems like even in light mode, the ripple is white in color (with 20% alpha), hence its invisible.

I've made a PR on this, can help to take a look?
Thanks

Status: NEW → RESOLVED
Closed: 1 years ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch

Tested on the latest Nightly 115.0a1 from 05/16.

  • On snackbars, the ripples animations are displayed when long tapping the buttons, and they fade out while while moving away from the button, in both Dark and Light theme.
  • On confirmation dialogues, the ripples animations are displayed when long tapping the buttons, and they fade out while while moving away from the button, with Dark theme only.
    The ripple animations are not visible on dialogues with Light theme.
    Devices used:
  • Google Pixel 6 (Android 13).
  • Motorola Moto G30 (Android 12)
  • Lenovo Yoga Tab 11 (Android 11)

:czlucius, should we open a separate issue for the ripple animations are not visible on dialogues with Light theme? Thanks.

Flags: needinfo?(lucius)
Attached video Dialogues.mp4

Attaching a video recording for dialogue on light theme.

Marking the ticket as verified fixed, after the follow up discussion with :czlucius here: https://github.com/mozilla-mobile/firefox-android/pull/1226 .

Status: RESOLVED → VERIFIED
Flags: qe-verify+

Fixed by czlucius in Firefox 115. Thanks!

Assignee: nobody → lucius
Flags: needinfo?(lucius)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: