Open
Bug 1352127
Opened 8 years ago
Updated 4 years ago
Toolbar button hover and pressed animations
Categories
(Firefox :: Theme, enhancement, P5)
Tracking
()
NEW
People
(Reporter: jaws, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [reserve-photon-visual][p1])
Attachments
(1 file, 2 obsolete files)
59 bytes,
text/x-review-board-request
|
Details |
Spec coming soon from UX. Flagging @amylee for the spec.
Flags: needinfo?(amlee)
Reporter | ||
Comment 1•8 years ago
|
||
Flags: needinfo?(amlee)
Updated•8 years ago
|
Whiteboard: [photon]
Reporter | ||
Updated•8 years ago
|
Whiteboard: [photon] → [photon-animation]
Reporter | ||
Updated•8 years ago
|
Points: --- → 5
Updated•8 years ago
|
Flags: qe-verify+
Priority: -- → P2
QA Contact: jwilliams
Comment 2•8 years ago
|
||
Attachment #8853086 -
Attachment is obsolete: true
Comment 3•8 years ago
|
||
Spec for Standard Rollover State
--------------
Hover
Grey Box
Size: 34x28 px
Colour: #000000
Opacity 5%
Icon
Colour: #4D4D4D
Scale 100%
Size 16x16 px
---------------
On Press
Grey Box
Size: 34x28 px
Colour: #000000
Opacity: 10%
Icon
Colour: #30A3FF
transform: scale(1.08)
----------------
On Release
Grey Box
Colour: #000000
Opacity 5%
Icon
Colour: #30A3FF
Reporter | ||
Comment 5•8 years ago
|
||
As discussed on Vidyo, the icon color will not change to #30A3FF on release.
This bug will only focus on the transforming the icon to scale(1.08) on press.
Reporter | ||
Updated•8 years ago
|
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Updated•8 years ago
|
Iteration: --- → 55.6 - May 29
Priority: P2 → P1
Comment hidden (mozreview-request) |
Reporter | ||
Comment 7•8 years ago
|
||
Comment on attachment 8869491 [details]
Bug 1352127 - Increase the size of the toolbarbutton icons in :hover:active.
Nihanth, what do you think of this approach? I see you are changing the paddings again in bug 1365901. Note that the current patch does not work for the downloads button (after it has been clicked) and the pocket button. I have not tested with every button in the palette.
Also, do you know of a way to transition this size change of the background element?
Attachment #8869491 -
Flags: feedback?(nhnt11)
Comment 8•8 years ago
|
||
(In reply to Jared Wein [:jaws] (behind on reviews and bugmail) (please needinfo? me) from comment #7)
> Comment on attachment 8869491 [details]
> Bug 1352127 - Increase the size of the toolbarbutton icons in :hover:active.
>
> Nihanth, what do you think of this approach? I see you are changing the
> paddings again in bug 1365901. Note that the current patch does not work for
> the downloads button (after it has been clicked) and the pocket button. I
> have not tested with every button in the palette.
>
> Also, do you know of a way to transition this size change of the background
> element?
I haven't tested the patch yet, but I had attempted to work on this in bug 1365572 before we marked it as a dupe of this. Based on a glance at your patch, it seems like you're trying to do something very similar to what I had come up with locally.
I wish there was a better approach. This feels pretty hacky, and I don't know of a way to apply a transition to this (but my expertise on transitions is very minimal).
The right thing to do would be to refactor the toolbar button code so that the rules are applied on the buttons themselves rather than the icons, but my attempt at that was... not fun.
I was wondering if, as a hack, there might be a way to add a mask on top of the icon, which is shaped like a 28x28px square with a border radius. Or maybe set the background to this shape and use `overflow: hidden;`. This would allow us to simply scale the icon and not care about the background growing.
These ideas aren't well formed yet, sorry for being fuzzy with technicality.
Reporter | ||
Comment 9•8 years ago
|
||
Comment on attachment 8869491 [details]
Bug 1352127 - Increase the size of the toolbarbutton icons in :hover:active.
Hey Dão, what do you think about this approach and Nihanth's ideas?
Attachment #8869491 -
Flags: feedback?(dao+bmo)
Comment 10•8 years ago
|
||
Comment on attachment 8869491 [details]
Bug 1352127 - Increase the size of the toolbarbutton icons in :hover:active.
Feels pretty messy.
I can look into moving the background styling from the image nodes to the toolbarbutton nodes. The main problem I think is that it won't work for the back button.
Attachment #8869491 -
Flags: feedback?(dao+bmo)
Updated•8 years ago
|
Attachment #8869491 -
Flags: feedback?(nhnt11)
Updated•8 years ago
|
Iteration: 55.6 - May 29 → 55.7 - Jun 12
Updated•7 years ago
|
Iteration: 55.7 - Jun 12 → 56.1 - Jun 26
Updated•7 years ago
|
Iteration: 56.1 - Jun 26 → 56.2 - Jul 10
Comment 11•7 years ago
|
||
Revised spec for Standard Rollover State
These are opacity changes for hover and on press states on the icon itself and the surrounding grey box to create a greater contrast between the two states.
--------------
Hover
Grey Box
Size: 34x28 px
Colour: #0c0c0d
Opacity 10%
Icon
Size 16x16 px
Colour: #0c0c0d
Opacity 80%
---------------
On Press
Grey Box
Size: 34x28 px
Colour: #0c0c0d
Opacity 20%
Icon
Colour: #0c0c0d
Opacity 90%
----------------
On Release (Same as on Hover)
Grey Box
Size: 34x28 px
Colour: #0c0c0d
Opacity 10%
Icon
Size 16x16 px
Colour: #0c0c0d
Opacity 80%
Updated•7 years ago
|
Iteration: 56.2 - Jul 10 → 56.3 - Jul 24
Updated•7 years ago
|
Assignee: jaws → nobody
Status: ASSIGNED → NEW
Iteration: 56.3 - Jul 24 → ---
Points: 5 → ---
Priority: P1 → P2
QA Contact: jwilliams → brindusa.tot
Whiteboard: [photon-animation] → [photon-visual]
Updated•7 years ago
|
Whiteboard: [photon-visual] → [reserve-photon-visual][p1]
Updated•7 years ago
|
Priority: P2 → P3
Updated•7 years ago
|
Attachment #8859196 -
Attachment is obsolete: true
Reporter | ||
Comment 12•7 years ago
|
||
(In reply to Amy Lee [:amylee] UX from comment #11)
> Revised spec for Standard Rollover State
> These are opacity changes for hover and on press states on the icon itself
> and the surrounding grey box to create a greater contrast between the two
> states.
What colors should be used in the inverted state (i.e. on compact dark theme)?
Flags: needinfo?(amlee)
Comment 13•7 years ago
|
||
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #12)
> (In reply to Amy Lee [:amylee] UX from comment #11)
> > Revised spec for Standard Rollover State
> > These are opacity changes for hover and on press states on the icon itself
> > and the surrounding grey box to create a greater contrast between the two
> > states.
>
> What colors should be used in the inverted state (i.e. on compact dark
> theme)?
Hi Jared,
The correct colours for dark theme is fine. You can just make the changes for the light theme. Thanks!
Flags: needinfo?(amlee)
Updated•7 years ago
|
Priority: P3 → P4
Updated•4 years ago
|
Component: General → Theme
Priority: P4 → P5
Updated•4 years ago
|
Severity: normal → N/A
Type: defect → enhancement
You need to log in
before you can comment on or make changes to this bug.
Description
•