Closed Bug 963002 Opened 10 years ago Closed 10 years ago

Adjust height of panel (subview) footer(s)

Categories

(Firefox :: Theme, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 33

People

(Reporter: u428464, Assigned: jaws)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [Australis:P4] p=2 s=33.1 [qa-])

Attachments

(2 files, 4 obsolete files)

According to http://people.mozilla.org/~shorlander/mockups-interactive/australis-interactive-mockups-/windows8.html the panel footer should have a smaller height and both help and quit buttons should be square.
Whiteboard: [Australis:P5]
Note that the new size will match the subview footer height.
So in latest builds the footer is smaller but the styling is broken.
Attached image Footer difference.png (obsolete) —
So now the footer is a bit smaller than the specs and doesn't match the subview footer. A dark line also appears between the footer and the panel.
Summary: Panel footer menu should be smaller according to the specs → Panel footer menu should be bigger according to the specs
Whiteboard: [Australis:P5] → [Australis:P3]
Whiteboard: [Australis:P3] → [Australis:P4]
Attachment #8368463 - Attachment is obsolete: true
Attached image Footer difference.png
The difference between the footers is even bigger than before. The size should be adjusted.
Summary: Panel footer menu should be bigger according to the specs → Adjust height of panel (subview) footer(s)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → ntim007
Status: NEW → ASSIGNED
Attached patch Patch v1 (obsolete) — Splinter Review
Also fixes bug 973248
Attachment #8395366 - Flags: review?(gijskruitbosch+bugs)
Blocks: 973248
Comment on attachment 8395366 [details] [diff] [review]
Patch v1

Review of attachment 8395366 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for the patch. Unfortunately, with this change, the subview footer is still bigger than the main panel footer on OS X, by about 3 pixels.

It is smaller than the main panel footer by about 3 pixels on Windows 7 in classic mode, and by 1px in aero.

This does look fine on Windows 8.

I expect it has to do with the fact that the other footer has icons, and those determine the height of the main panel footer (which was 36px + 1px border everywhere - 2 * 10px padding + 16px for the icon). You should probably set a min-height to 36/37px, verify that the vertical alignment doesn't go wonky (I *think* the existing XUL + CSS takes care of this, but do check) and then look at OS X if you can. If you don't have access to an OS X machine, let me know and I can poke some more after you address the Windows issues.

::: browser/themes/shared/customizableui/panelUIOverlay.inc.css
@@ +441,5 @@
>    background-image: none;
>    border: none;  
>    border-radius: 0;
> +  transition-duration: 150ms;
> +  transition-property: background-color;

This rule was dead and should be removed rather than resurrected. We consciously removed the transitions from the other buttons in the panel, it's just an oversight that they're still there for the combined buttons and the footer, AFAIK. The combined button rules aren't dead yet, so we should probably leave those for a separate bug w/ ui-review. Let's focus on the footer in here.
Attachment #8395366 - Flags: review?(gijskruitbosch+bugs) → feedback+
(In reply to :Gijs Kruitbosch from comment #7)
> Comment on attachment 8395366 [details] [diff] [review]
> Patch v1
> 
> Review of attachment 8395366 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Thanks for the patch. Unfortunately, with this change, the subview footer is
> still bigger than the main panel footer on OS X, by about 3 pixels.
> 
> It is smaller than the main panel footer by about 3 pixels on Windows 7 in
> classic mode, and by 1px in aero.
> 
> This does look fine on Windows 8.
> 
> I expect it has to do with the fact that the other footer has icons, and
> those determine the height of the main panel footer (which was 36px + 1px
> border everywhere - 2 * 10px padding + 16px for the icon). You should
> probably set a min-height to 36/37px, verify that the vertical alignment
> doesn't go wonky (I *think* the existing XUL + CSS takes care of this, but
> do check) and then look at OS X if you can. If you don't have access to an
> OS X machine, let me know and I can poke some more after you address the
> Windows issues.

Can I use line-height like the mockup does ?

> ::: browser/themes/shared/customizableui/panelUIOverlay.inc.css
> @@ +441,5 @@
> >    background-image: none;
> >    border: none;  
> >    border-radius: 0;
> > +  transition-duration: 150ms;
> > +  transition-property: background-color;
> 
> This rule was dead and should be removed rather than resurrected. We
> consciously removed the transitions from the other buttons in the panel,
> it's just an oversight that they're still there for the combined buttons and
> the footer, AFAIK. The combined button rules aren't dead yet, so we should
> probably leave those for a separate bug w/ ui-review. Let's focus on the
> footer in here.

Sure :)
Flags: needinfo?(gijskruitbosch+bugs)
That wouldn't work well with non-default font sizes on Windows (hence my suggestion for 'min-height' rather than 'height').
Flags: needinfo?(gijskruitbosch+bugs)
(In reply to :Gijs Kruitbosch from comment #9)
> That wouldn't work well with non-default font sizes on Windows (hence my
> suggestion for 'min-height' rather than 'height').

Ok, then. Should I make the Panel footer use the .panel-subview-footer class ?
Flags: needinfo?(gijskruitbosch+bugs)
(In reply to Tim Nguyen [:ntim] from comment #10)
> (In reply to :Gijs Kruitbosch from comment #9)
> > That wouldn't work well with non-default font sizes on Windows (hence my
> > suggestion for 'min-height' rather than 'height').
> 
> Ok, then. Should I make the Panel footer use the .panel-subview-footer class
> ?

*to avoid future inconsistencies.
(In reply to Tim Nguyen [:ntim] from comment #11)
> (In reply to Tim Nguyen [:ntim] from comment #10)
> > (In reply to :Gijs Kruitbosch from comment #9)
> > > That wouldn't work well with non-default font sizes on Windows (hence my
> > > suggestion for 'min-height' rather than 'height').
> > 
> > Ok, then. Should I make the Panel footer use the .panel-subview-footer class
> > ?
> 
> *to avoid future inconsistencies.

That probably won't work well because it's a different kind of node. :-(

(besides, a bunch of the panel-subview-footer rules use .subviewbutton.panel-subview-footer, and we can't give the footer the "subviewbutton" class because it'd break a bunch of things, and we might not be able to adjust those selectors because of specificity concerns)
Flags: needinfo?(gijskruitbosch+bugs)
No longer blocks: 973248
Attached patch Patch v2 (obsolete) — Splinter Review
I only have Windows. Can you test this patch for me on other platforms please ?
Attachment #8395366 - Attachment is obsolete: true
Attachment #8397084 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8397084 [details] [diff] [review]
Patch v2

Canceling the review since I just figured out the same issue will be there.
Attachment #8397084 - Flags: review?(gijskruitbosch+bugs)
Giving up.
Assignee: ntim007 → nobody
Status: ASSIGNED → NEW
This has a small 1px gap issue.
Attachment #8397084 - Attachment is obsolete: true
Flags: firefox-backlog+
Whiteboard: [Australis:P4] → [Australis:P4] p=2
Blocks: 994950
Assignee: nobody → mnoorenberghe
Status: NEW → ASSIGNED
Whiteboard: [Australis:P4] p=2 → [Australis:P4] p=2 s=it-32c-31a-30b.2 [qa?]
Assignee: mnoorenberghe → MattN+bmo
Whiteboard: [Australis:P4] p=2 s=it-32c-31a-30b.2 [qa?] → [Australis:P4] p=2 s=it-32c-31a-30b.2 [qa-]
Assignee: MattN+bmo → nobody
Status: ASSIGNED → NEW
QA Whiteboard: [qa-]
Whiteboard: [Australis:P4] p=2 s=it-32c-31a-30b.2 [qa-] → [Australis:P4] p=2 s=it-32c-31a-30b.2
Whiteboard: [Australis:P4] p=2 s=it-32c-31a-30b.2 → [Australis:P4] p=2 [qa-]
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Whiteboard: [Australis:P4] p=2 [qa-] → [Australis:P4] p=2 s=it-32c-31a-30b.3 [qa-]
I saw the discussion on IRC, but I'll explain here. The purpose of this bug is to have the panel subview footer to have the same height as the menu panel footer (Customize one). Current when a subview is opened you can see the difference between them and that's not very nice visually.
So we have had a brief discussion on IRC yesterday about this and Jaws isn't sure it's worth fixing. I tend to think it is, but UX feedback is maybe best here.
Flags: needinfo?(philipp)
Yeah, it's annoying.
It comes down to how much work this would be. If this is a 1-3 (possibly 5) point effort, then it should be worth fixing. Anything above that, we can have more impact by improving other parts of the browser.
I'll leave the estimation to someone more qualified :)
Flags: needinfo?(philipp)
Hi Madhava, based on today's update meeting you will confirm if any design changes will impact this bug and if it should be removed from the current iteration.
Flags: needinfo?(madhava)
Whiteboard: [Australis:P4] p=2 s=it-32c-31a-30b.3 [qa-] → [Australis:P4] p=2 s=33.1 [qa-]
I tested Tim's patch on Windows 8, Windows 7 + Windows7/Classic and OSX 10.9. It will be a while before I will have my linux build finished.

Gijs, I don't see any footer height mismatches with Tim's patch. The only "subview" that it doesn't work well with is the Developer Tools which doesn't use a standard footer but just has menuitems at the bottom.
Attachment #8397110 - Attachment is obsolete: true
Attachment #8438574 - Flags: review?(gijskruitbosch+bugs)
Also tested on Windows XP Luna Blue and Classic.
Tested on Ubuntu 14.04 as well.
Note that if the design of bug 996230 is implemented the work done here may be "undone".
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #22)
> Created attachment 8438574 [details] [diff] [review]
> :ntim's patch (rebased)
> 
> I tested Tim's patch on Windows 8, Windows 7 + Windows7/Classic and OSX
> 10.9. It will be a while before I will have my linux build finished.
> 
> Gijs, I don't see any footer height mismatches with Tim's patch. The only
> "subview" that it doesn't work well with is the Developer Tools which
> doesn't use a standard footer but just has menuitems at the bottom.

Yeah, it wouldn't work with things without footers, but that's not an issue IMO. I can try to review this either tomorrow or later tonight, depending on how my energy levels go... in any case, I wonder what Tim meant with comment #16, then. Tim? :-)
Flags: needinfo?(ntim007)
(In reply to :Gijs Kruitbosch from comment #26)
> (In reply to Jared Wein [:jaws] (please needinfo? me) from comment #22)
> > Created attachment 8438574 [details] [diff] [review]
> > :ntim's patch (rebased)
> > 
> > I tested Tim's patch on Windows 8, Windows 7 + Windows7/Classic and OSX
> > 10.9. It will be a while before I will have my linux build finished.
> > 
> > Gijs, I don't see any footer height mismatches with Tim's patch. The only
> > "subview" that it doesn't work well with is the Developer Tools which
> > doesn't use a standard footer but just has menuitems at the bottom.
> 
> Yeah, it wouldn't work with things without footers, but that's not an issue
> IMO. I can try to review this either tomorrow or later tonight, depending on
> how my energy levels go... in any case, I wonder what Tim meant with comment
> #16, then. Tim? :-)

The subview footer was 1px higher than the main menu footer (even with pixel perfect adjustments). I'm not sure if it's still the case now though.
Flags: needinfo?(ntim007)
(In reply to Guillaume C. [:ge3k0s] from comment #25)
> Note that if the design of bug 996230 is implemented the work done here may
> be "undone".

I don't really understand this. I expect that the footer size there is just an artifact of how it is now - it's probably just a manipulated screenshot where they didn't mess with the footer size. In other words, if we fix it now, and as long as bug 996230 doesn't break it, we should be fine.
Comment on attachment 8438574 [details] [diff] [review]
:ntim's patch (rebased)

Review of attachment 8438574 [details] [diff] [review]:
-----------------------------------------------------------------

I'm going to trust your due diligence on testing this, rs=me codewise.
Attachment #8438574 - Flags: review?(gijskruitbosch+bugs) → review+
Flags: needinfo?(madhava)
(In reply to :Gijs Kruitbosch from comment #28)
> (In reply to Guillaume C. [:ge3k0s] from comment #25)
> > Note that if the design of bug 996230 is implemented the work done here may
> > be "undone".
> 
> I don't really understand this. I expect that the footer size there is just
> an artifact of how it is now - it's probably just a manipulated screenshot
> where they didn't mess with the footer size. In other words, if we fix it
> now, and as long as bug 996230 doesn't break it, we should be fine.

In fact the adjusted footer should be approximately 38 px on Windows and the new Mike Maslaney spec shows 40 px (https://bug996230.bugzilla.mozilla.org/attachment.cgi?id=8436013)
(In reply to Guillaume C. [:ge3k0s] from comment #31)
> (In reply to :Gijs Kruitbosch from comment #28)
> > (In reply to Guillaume C. [:ge3k0s] from comment #25)
> > > Note that if the design of bug 996230 is implemented the work done here may
> > > be "undone".
> > 
> > I don't really understand this. I expect that the footer size there is just
> > an artifact of how it is now - it's probably just a manipulated screenshot
> > where they didn't mess with the footer size. In other words, if we fix it
> > now, and as long as bug 996230 doesn't break it, we should be fine.
> 
> In fact the adjusted footer should be approximately 38 px on Windows and the
> new Mike Maslaney spec shows 40 px
> (https://bug996230.bugzilla.mozilla.org/attachment.cgi?id=8436013)

FYI, that spec isn't finished, it still requires some tweaks. Especially in the colors, that are not high contrast oompatible (our current color is a translucent gray, while in his spec, the colors are fully opaque).
https://hg.mozilla.org/integration/fx-team/rev/a9c9191dc939
Keywords: checkin-needed
Whiteboard: [Australis:P4] p=2 s=33.1 [qa-] → [Australis:P4] p=2 s=33.1 [qa-][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/a9c9191dc939
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P4] p=2 s=33.1 [qa-][fixed-in-fx-team] → [Australis:P4] p=2 s=33.1 [qa-]
Target Milestone: --- → Firefox 33
Comment on attachment 8438574 [details] [diff] [review]
:ntim's patch (rebased)

Can we get the patch uplifted to aurora and beta please ?
Flags: needinfo?(jaws)
Yeah, this is early enough in the cycle and the change is low-risk enough that an uplif to Aurora and Beta should be fine.

Tim, please request aurora and beta approval on the patch, and make sure that the patch applies and works on Aurora and Beta. If not then we'll need new patches for those and it will make the uplift doubtful.
Flags: needinfo?(jaws)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: