Closed Bug 1398531 Opened 4 years ago Closed 4 years ago

[Photon] Zoom indicator in hamburger menu looks bulky

Categories

(Firefox :: Menus, defect, P1)

57 Branch
x86_64
Windows 7
defect

Tracking

()

VERIFIED FIXED
Firefox 57
Tracking Status
firefox-esr52 --- unaffected
firefox55 --- unaffected
firefox56 --- unaffected
firefox57 + verified
firefox58 --- verified

People

(Reporter: wip.the.gruik, Assigned: mikedeboer)

References

(Depends on 1 open bug)

Details

(Whiteboard: [reserve-photon-structure])

Attachments

(5 files)

To my eyes, the zoom indicator in the hamburger menu feels a little bulky and eye-catching.

It is smaller and brighter on the mock-up:
https://mozilla.invisionapp.com/share/ZKBC94BPQ#/screens/230516723
It's probably so high, due to button size standardization.
Whiteboard: [photon-visual] [triage]
Whiteboard: [photon-visual] [triage] → [photon-structure] [triage]
Flags: qe-verify?
Priority: -- → P4
Whiteboard: [photon-structure] [triage] → [reserve-photon-structure]
Flags: qe-verify? → qe-verify+
QA Contact: gwimberly
Assignee: nobody → mdeboer
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment on attachment 8910271 [details]
Bug 1398531 - Toolbarbuttons are standardized with a min-height of 24px, but the zoom percentage button is text-only, thus needs a different treatment.

https://reviewboard.mozilla.org/r/181766/#review187098

I mean, I kind of like the current state, but OK!
Attachment #8910271 - Flags: review?(gijskruitbosch+bugs) → review+
Comment on attachment 8910271 [details]
Bug 1398531 - Toolbarbuttons are standardized with a min-height of 24px, but the zoom percentage button is text-only, thus needs a different treatment.

https://reviewboard.mozilla.org/r/181766/#review187116
Attachment #8910271 - Flags: review+
Pushed by mdeboer@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/81457c208695
Toolbarbuttons are standardized with a min-height of 24px, but the zoom percentage button is text-only, thus needs a different treatment. r=Gijs
Iteration: --- → 57.3 - Sep 19
Priority: P4 → P1
https://hg.mozilla.org/mozilla-central/rev/81457c208695
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Attached image zoom indicator.bmp
Hi Mike, 
I tested this issue and the actual results are in the attachment
Tell me it is the expected behavior?

[Note]: I marked the differences with red.
Flags: needinfo?(mdeboer)
(In reply to Valentina Claudia Ona from comment #7)
> Created attachment 8911128 [details]
> zoom indicator.bmp
> 
> Hi Mike, 
> I tested this issue and the actual results are in the attachment
> Tell me it is the expected behavior?
> 
> [Note]: I marked the differences with red.

The change you noticed in there is the _width_ of the button, whereas this bug changed the _height_ - you can measure that change in the same picture too.
The width change was bug 1379357.
Flags: needinfo?(mdeboer)
Attached image zoom indicator (2).bmp
I retested this issue and I can't see differences between the old height (Nightly 57.0a1 from 2017-09-06) and the new height (Latest Nightly 58.0a1).
So please tell me which are the specifications?
If I compare with the specifications we have 24 px.
https://mozilla.invisionapp.com/share/ZKBC94BPQ#/screens/230516723
Flags: needinfo?(mdeboer)
Ah, yes, so this is OSX only, then!
Flags: needinfo?(mdeboer)
Checked on Nightly 58.0a1 20170922100051 on Windows 7, there is no difference whatsoever before and after the patch.

Although the specifications/mock-up do not give any explicit height for the zoom button, I measured one of 16px.

So, the patch has landed but the issue is obviously not fixed.
Can we reopen this bug or should I file a new one ?
Ni for comment #11. :-)
Flags: needinfo?(mdeboer)
Status: RESOLVED → REOPENED
Flags: needinfo?(mdeboer)
Resolution: FIXED → ---
Status: REOPENED → NEW
Priority: P1 → P3
Assignee: mdeboer → nobody
Iteration: 57.3 - Sep 19 → ---
Assignee: nobody → mdeboer
Status: NEW → ASSIGNED
Priority: P3 → P1
Comment on attachment 8910271 [details]
Bug 1398531 - Toolbarbuttons are standardized with a min-height of 24px, but the zoom percentage button is text-only, thus needs a different treatment.

https://reviewboard.mozilla.org/r/181766/#review188402

::: browser/themes/shared/customizableui/panelUI.inc.css:1374
(Diff revision 3)
>    margin-inline-start: 10px;
>  }
>  
>  /* An em-based minimum height works better for a text-only button. */
>  #appMenu-zoomReset-button {
> -  min-height: 2em;
> +  min-height: calc(1em + 8px);

What happens if we just use unset/auto?
Attachment #8910271 - Flags: review+
(In reply to :Gijs from comment #15)
> What happens if we just use unset/auto?

Brilliant! 'unset' does the job just fine as well and is much cleaner. Nice.
Comment on attachment 8910271 [details]
Bug 1398531 - Toolbarbuttons are standardized with a min-height of 24px, but the zoom percentage button is text-only, thus needs a different treatment.

https://reviewboard.mozilla.org/r/181766/#review188414

Great, rs=me!
Attachment #8910271 - Flags: review?(gijskruitbosch+bugs) → review+
[Tracking Requested - why for this release]: Small look & feel change, trivial to uplift.
Pushed by mdeboer@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7eb30eea1779
Toolbarbuttons are standardized with a min-height of 24px, but the zoom percentage button is text-only, thus needs a different treatment. r=Gijs
https://hg.mozilla.org/mozilla-central/rev/7eb30eea1779
Status: ASSIGNED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Comment on attachment 8910271 [details]
Bug 1398531 - Toolbarbuttons are standardized with a min-height of 24px, but the zoom percentage button is text-only, thus needs a different treatment.

Approval Request Comment
[Feature/Bug causing the regression]: photon stuff
[User impact if declined]: zoom "pill" button in the hamburger looks a bit oversized
[Is this code covered by automated tests?]: nope, styling only
[Has the fix been verified in Nightly?]: not yet, but should be trivial
[Needs manual test from QE? If yes, steps to reproduce]: not really... it's a 1-line CSS change
[List of other uplifts needed for the feature/fix]: none - we just need the min-height to be "unset" here, instead of whatever it is on 57 (we landed 2 patches in this bug, maybe there be conflicts trying to graft this as-is, I'm not sure - but it's a 1-line change!)
[Is the change risky?]: no
[Why is the change risky/not risky?]: css-only 1-liner change, loads of beta to go.
[String changes made/needed]: nope
Attachment #8910271 - Flags: approval-mozilla-beta?
You're gonna hate me... but FYI the width change introduced in the latest patch lightly regressed what bug 1379357 fixed.

At least on Windows 7, witch uses Segoe UI font family, it is 2 pixels short, making for a very subtle 'jump' when switching back and forth 90% and 100%.

This rules fixes it for me:  min-width: calc(3ch + 10px);
Attached image zoom indicator (3).bmp
I verified this issue with latest Nightly 58.0a1 and now the zoom indicator is smaller than the "-" and "=" button, but still, in the specifications, it seems to be a bit smaller.
Shorlander, what is your opinion in regards to this?
Flags: needinfo?(shorlander)
Comment on attachment 8910271 [details]
Bug 1398531 - Toolbarbuttons are standardized with a min-height of 24px, but the zoom percentage button is text-only, thus needs a different treatment.

Polish photon, taking it
Should be in 57b4 (gtb tomorrow Thursday)
Attachment #8910271 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attached patch Patch for betaSplinter Review
Beta patch considering the concerns about whether this would apply and comment 23, this only adjusts the height, not the width. Please uplift this instead of the original patch, per discussion with Mike on IRC.
Attachment #8912673 - Flags: review+
(In reply to Franck (Wip) from comment #23)
> You're gonna hate me... but FYI the width change introduced in the latest
> patch lightly regressed what bug 1379357 fixed.
> 
> At least on Windows 7, witch uses Segoe UI font family, it is 2 pixels
> short, making for a very subtle 'jump' when switching back and forth 90% and
> 100%.
> 
> This rules fixes it for me:  min-width: calc(3ch + 10px);

Can you file a separate bug for this, please?
Flags: needinfo?(wip.the.gruik)
Done.
It is bug 1403675.
Flags: needinfo?(wip.the.gruik)
Depends on: 1403675
(In reply to Franck (Wip) from comment #28)
> Done.
> It is bug 1403675.

Thanks!
(In reply to Valentina Claudia Ona from comment #24)
> Created attachment 8912599 [details]
> zoom indicator (3).bmp
> 
> I verified this issue with latest Nightly 58.0a1 and now the zoom indicator
> is smaller than the "-" and "=" button, but still, in the specifications, it
> seems to be a bit smaller.
> Shorlander, what is your opinion in regards to this?

Looks good to me. Bryan worked on that, getting his feedback.
Flags: needinfo?(shorlander) → needinfo?(bbell)
Looks good to me in Nightly 58.0a1 - Windows and Mac.
Flags: needinfo?(bbell)
What do you think about this issue? Should I mark this as verified fixed?
Flags: needinfo?(shorlander)
Based on the fact that in comment 33 and comment 32 this issue is fixed, I will mark this as verified fixed.
I also verified this bug on Beta 57.0b9 (20171016185129) under Windows 10 x64, Mac OS X 10.11 and Ubuntu 16.04 x64. Besides the issue mentioned in comment 31, I haven't seen any new ones during testing, so I will mark this as verified fixed.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.