Closed
Bug 1369415
Opened 7 years ago
Closed 7 years ago
Add 1px margin below bookmark item
Categories
(Firefox :: Theme, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox57 | --- | verified |
People
(Reporter: afnankhan, Assigned: dao)
References
Details
(Keywords: reproducible, Whiteboard: [photon-visual][p4])
Attachments
(5 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0
Build ID: 20170601030206
Updated•7 years ago
|
Component: Untriaged → Theme
Updated•7 years ago
|
Whiteboard: [photon-visual][triage]
Comment 1•7 years ago
|
||
There is 1px margin below bookmark item, or I'm missing something?
Flags: needinfo?(afnankhan)
(In reply to Virtual_ManPL [:Virtual] - (please needinfo? me - so I will see your comment/reply/question/etc.) from comment #1)
> Created attachment 8873817 [details]
> Fx.png
>
> There is 1px margin below bookmark item, or I'm missing something?
That's border.
http://imgur.com/a/TXW8q
In the image I have set padding-bottom: 1px to #PersonalToolbar
Also in photon mockup if you enable bookmark bar and hover bookmark item you can see there is 1px margin below it
https://people-mozilla.org/~shorlander/projects/photon/Mockups/windows-10.html
Flags: needinfo?(afnankhan)
Comment 3•7 years ago
|
||
Oh, yes, you're right. I can confirm this.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: reproducible
OS: Unspecified → Windows
Hardware: Unspecified → All
Updated•7 years ago
|
Flags: qe-verify+
Priority: -- → P2
QA Contact: brindusa.tot
Whiteboard: [photon-visual][triage] → [photon-visual]
Assignee | ||
Updated•7 years ago
|
Whiteboard: [photon-visual] → [photon-visual][p3]
Assignee | ||
Updated•7 years ago
|
Blocks: photon-visual
Whiteboard: [photon-visual][p3] → [photon-visual][p4]
Updated•7 years ago
|
Assignee: nobody → jhofmann
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8890329 [details]
Bug 1369415 - Consolidate bookmark toolbar styling across platforms to the new Photon design.
https://reviewboard.mozilla.org/r/161456/#review166754
::: browser/themes/windows/browser.css:163
(Diff revision 1)
>
> #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
> overflow: -moz-hidden-unscrollable;
> max-height: 4em;
> transition: min-height 170ms ease-out, max-height 170ms ease-out;
> - padding: 0 5px;
> + padding: 0 5px 1px;
Can we make this consistent across platforms?
Updated•7 years ago
|
Iteration: --- → 56.4 - Aug 1
Priority: P2 → P1
Comment hidden (mozreview-request) |
Comment 7•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8890329 [details]
Bug 1369415 - Consolidate bookmark toolbar styling across platforms to the new Photon design.
https://reviewboard.mozilla.org/r/161456/#review166754
> Can we make this consistent across platforms?
I updated the patch to make all bookmark toolbars look like shorlanders spec.
Assignee | ||
Comment 8•7 years ago
|
||
mozreview-review |
Comment on attachment 8890329 [details]
Bug 1369415 - Consolidate bookmark toolbar styling across platforms to the new Photon design.
https://reviewboard.mozilla.org/r/161456/#review167302
::: browser/themes/shared/browser.inc.css:43
(Diff revision 2)
> %endif
>
> +/* Bookmark toolbar */
> +
> +#personal-bookmarks {
> + min-height: 19px;
Is this still needed at all?
::: browser/themes/shared/browser.inc.css:50
(Diff revision 2)
> +
> +#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
> + overflow: -moz-hidden-unscrollable;
> + max-height: 4em;
> + transition: min-height 170ms ease-out, max-height 170ms ease-out;
> + padding: 0 5px 3px;
Unless there's a specific reason to have more horizontal padding, let's keep it at 4px like it was on mac and linux.
::: browser/themes/shared/browser.inc.css:50
(Diff revision 2)
> +
> +#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
> + overflow: -moz-hidden-unscrollable;
> + max-height: 4em;
> + transition: min-height 170ms ease-out, max-height 170ms ease-out;
> + padding: 0 5px 3px;
1px at the bottom is sufficient I think.
::: browser/themes/shared/toolbarbuttons.inc.css:466
(Diff revision 2)
>
> /* ::::: bookmark buttons ::::: */
>
> toolbarbutton.bookmark-item:not(.subviewbutton) {
> margin: 0;
> - padding: 2px 3px;
> + padding: 0 4px;
The extra horizontal padding means that fewer items might fit on the screen. Users are sensitive to that, so let's not do this.
I also think we want to keep some vertical padding. 2px looks fine over here with the min-height removed.
Attachment #8890329 -
Flags: review?(dao+bmo) → review-
Comment 9•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8890329 [details]
Bug 1369415 - Consolidate bookmark toolbar styling across platforms to the new Photon design.
https://reviewboard.mozilla.org/r/161456/#review167302
> Is this still needed at all?
Hm, I thought it was needed for the animation, but it still works without, so let's drop it.
> Unless there's a specific reason to have more horizontal padding, let's keep it at 4px like it was on mac and linux.
Right, the spec says the same, I missed that.
> 1px at the bottom is sufficient I think.
The spec says 2px, I'm doing 3px because it includes the bottom border of the toolbar for some reason.
> The extra horizontal padding means that fewer items might fit on the screen. Users are sensitive to that, so let's not do this.
>
> I also think we want to keep some vertical padding. 2px looks fine over here with the min-height removed.
Both of these are according to spec AFAICS (https://mozilla.invisionapp.com/share/ENBBK0F9U#/screens/237332831). Feel free to take that to shorlander :)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 11•7 years ago
|
||
mozreview-review |
Comment on attachment 8890329 [details]
Bug 1369415 - Consolidate bookmark toolbar styling across platforms to the new Photon design.
https://reviewboard.mozilla.org/r/161456/#review167362
::: browser/themes/shared/browser.inc.css:46
(Diff revision 3)
> +
> +#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
> + overflow: -moz-hidden-unscrollable;
> + max-height: 4em;
> + transition: min-height 170ms ease-out, max-height 170ms ease-out;
> + padding: 0 4px 3px;
I can't tell from the invision mockup what the bottom padding is supposed to be, but in the interactive mockup it's 1px and I think that's preferable. The bottom border does not take away from the padding over here on Linux.
::: browser/themes/shared/toolbarbuttons.inc.css:466
(Diff revision 3)
>
> /* ::::: bookmark buttons ::::: */
>
> toolbarbutton.bookmark-item:not(.subviewbutton) {
> margin: 0;
> - padding: 2px 3px;
> + padding: 0 4px;
That horizontal padding is actually not part of the spec. The spec has a 4px _margin_ between the buttons, but let's make that part of this bug either.
::: browser/themes/shared/toolbarbuttons.inc.css:468
(Diff revision 3)
>
> toolbarbutton.bookmark-item:not(.subviewbutton) {
> margin: 0;
> - padding: 2px 3px;
> + padding: 0 4px;
> -moz-appearance: none;
> + height: 18px;
Please use vertical padding instead of setting an explicit height so that this works with different font sizes.
Attachment #8890329 -
Flags: review?(dao+bmo) → review-
Comment hidden (mozreview-request) |
Comment 13•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8890329 [details]
Bug 1369415 - Consolidate bookmark toolbar styling across platforms to the new Photon design.
https://reviewboard.mozilla.org/r/161456/#review167362
> I can't tell from the invision mockup what the bottom padding is supposed to be, but in the interactive mockup it's 1px and I think that's preferable. The bottom border does not take away from the padding over here on Linux.
It says 2px in invision. It's also 2px in the interactive mockup, I sent you a screenshot on IRC. The bottom border thing is indeed only happening on OSX, so I'll get this down to 2px. It still looks fine on Mac.
> That horizontal padding is actually not part of the spec. The spec has a 4px _margin_ between the buttons, but let's make that part of this bug either.
The horizontal padding is both part of the spec and defined in the interactive mockup. Please check again. The spec indeed also says 4px margin, I got confused by that. I updated the patch and will needinfo shorlander about your concern.
> Please use vertical padding instead of setting an explicit height so that this works with different font sizes.
I set min-height, which hopefully works as well. I think that's more correct since this is about making sure the height doesn't shrink on OSX (which it does for some reason).
Comment 14•7 years ago
|
||
Stephen, we're a bit concerned that the new bookmark bar design adds a lot of horizontal empty space, moving more bookmark items to the overflow. I'd suggest getting rid of the margin between the bookmark items (we've not had any before). What do you think?
Flags: needinfo?(shorlander)
Assignee | ||
Comment 15•7 years ago
|
||
(In reply to Johann Hofmann [:johannh] from comment #13)
> > I can't tell from the invision mockup what the bottom padding is supposed to be, but in the interactive mockup it's 1px and I think that's preferable. The bottom border does not take away from the padding over here on Linux.
>
> It says 2px in invision. It's also 2px in the interactive mockup, I sent you
> a screenshot on IRC. The bottom border thing is indeed only happening on
> OSX, so I'll get this down to 2px. It still looks fine on Mac.
I don't know where that screenshot is from, here's what I see.
> > That horizontal padding is actually not part of the spec. The spec has a 4px _margin_ between the buttons, but let's make that part of this bug either.
>
> The horizontal padding is both part of the spec and defined in the
> interactive mockup. Please check again. The spec indeed also says 4px
> margin, I got confused by that. I updated the patch and will needinfo
> shorlander about your concern.
Just drop the controversial parts and file another bug? The scope creep here doesn't seem useful.
> > Please use vertical padding instead of setting an explicit height so that this works with different font sizes.
>
> I set min-height, which hopefully works as well. I think that's more correct
> since this is about making sure the height doesn't shrink on OSX (which it
> does for some reason).
I don't understand what exactly that means, but the vertical padding ensures that what's inside a bookmark item isn't too close to the button's edges, i.e. that the button doesn't look crammed. Neither height nor min-height do that.
Assignee | ||
Comment 16•7 years ago
|
||
mozreview-review |
Comment on attachment 8890329 [details]
Bug 1369415 - Consolidate bookmark toolbar styling across platforms to the new Photon design.
https://reviewboard.mozilla.org/r/161456/#review167804
::: browser/themes/shared/browser.inc.css:46
(Diff revision 4)
> +
> +#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
> + overflow: -moz-hidden-unscrollable;
> + max-height: 4em;
> + transition: min-height 170ms ease-out, max-height 170ms ease-out;
> + padding: 0 6px 2px;
Please revert the horizontal padding to 4px and file a new bug on extending it. For the vertical padding, see my screenshot.
::: browser/themes/shared/toolbarbuttons.inc.css:465
(Diff revision 4)
> }
>
> /* ::::: bookmark buttons ::::: */
>
> toolbarbutton.bookmark-item:not(.subviewbutton) {
> - margin: 0;
> + margin: 0 2px;
Please revert this.
::: browser/themes/shared/toolbarbuttons.inc.css:466
(Diff revision 4)
>
> /* ::::: bookmark buttons ::::: */
>
> toolbarbutton.bookmark-item:not(.subviewbutton) {
> - margin: 0;
> - padding: 2px 3px;
> + margin: 0 2px;
> + padding: 0 4px;
ditto
Attachment #8890329 -
Flags: review?(dao+bmo) → review-
Comment 17•7 years ago
|
||
(In reply to Johann Hofmann [:johannh] from comment #14)
> Stephen, we're a bit concerned that the new bookmark bar design adds a lot
> of horizontal empty space, moving more bookmark items to the overflow. I'd
> suggest getting rid of the margin between the bookmark items (we've not had
> any before). What do you think?
The goal is to make sure every item group (Icon + Label) has visually a distinct grouping. Right now they are all running together. That's going to require a trade-off for some horizontal space.
I played around with smaller numbers but it wasn't enough when dealing with a lot of elements that are occupying an already dense space.
Flags: needinfo?(shorlander)
Comment hidden (mozreview-request) |
Comment 19•7 years ago
|
||
(In reply to Dão Gottwald [::dao] from comment #15)
> > > Please use vertical padding instead of setting an explicit height so that this works with different font sizes.
> >
> > I set min-height, which hopefully works as well. I think that's more correct
> > since this is about making sure the height doesn't shrink on OSX (which it
> > does for some reason).
>
> I don't understand what exactly that means, but the vertical padding ensures
> that what's inside a bookmark item isn't too close to the button's edges,
> i.e. that the button doesn't look crammed. Neither height nor min-height do
> that.
I don't think I actually need the min-height at all now. Also, the bookmark buttons center and pad their content with these CSS rules, but I'm not 100% sure what makes them do it.
> Please revert the horizontal padding to 4px and file a new bug on extending it. For the vertical padding, see my screenshot.
Since Stephen is okay with it I'd like to go ahead and add the horizontal space in this patch. I should note that the compact mode features a smaller bookmarks toolbar, I'll create a bug for that as follow-up.
Again, the 2px vertical bottom padding are in the spec. Since our web mockups differ mysteriously I don't think they should be used as reference. If you'd like me to deviate from the spec please take it to shorlander.
Updated•7 years ago
|
Iteration: 56.4 - Aug 1 → 57.1 - Aug 15
Assignee | ||
Comment 20•7 years ago
|
||
mozreview-review |
Comment on attachment 8890329 [details]
Bug 1369415 - Consolidate bookmark toolbar styling across platforms to the new Photon design.
https://reviewboard.mozilla.org/r/161456/#review171604
::: browser/themes/shared/browser.inc.css:46
(Diff revision 5)
> +
> +#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
> + overflow: -moz-hidden-unscrollable;
> + max-height: 4em;
> + transition: min-height 170ms ease-out, max-height 170ms ease-out;
> + padding: 0 6px 2px;
The 2px bottom padding is still too much on Linux and Windows.
At the risk of sounding like a broken record: The increased horizontal padding should not be part of this bug. It will make bug 1352042 worse, so I'd like to land this change separately if at all.
::: browser/themes/shared/toolbarbuttons.inc.css:466
(Diff revision 5)
>
> /* ::::: bookmark buttons ::::: */
>
> toolbarbutton.bookmark-item:not(.subviewbutton) {
> - margin: 0;
> - padding: 2px 3px;
> + margin: 0 2px;
> + padding: 0 4px;
Ditto, separate bug. We will get complaints about this, as we have before, so I don't want to sneak this in with other changes.
Attachment #8890329 -
Flags: review?(dao+bmo) → review-
Comment 21•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8890329 [details]
Bug 1369415 - Consolidate bookmark toolbar styling across platforms to the new Photon design.
https://reviewboard.mozilla.org/r/161456/#review171604
> The 2px bottom padding is still too much on Linux and Windows.
>
> At the risk of sounding like a broken record: The increased horizontal padding should not be part of this bug. It will make bug 1352042 worse, so I'd like to land this change separately if at all.
Again, I'm implementing the spec. Please ask shorlander. I'm happy to change it when you get sign-off from UX but since you're advocating for changing the spec, I feel like you should approach them about it (or r+ my patch).
> Ditto, separate bug. We will get complaints about this, as we have before, so I don't want to sneak this in with other changes.
I'm really confused by your hesitation to "sneak in" changes when we've been doing this all the time, making broader fixes that are out of scope of the specific bugs they were submitted in.
This bug is about bookmark toolbar spacing and the patch is titled "Consolidate bookmark toolbar styling across platforms to the new Photon design". I don't consider the changes I'm making completely out of scope, especially considering that they're conforming to the spec we were given.
Landing a 1px fix and then changing this number to match the spec right afterwards seems like a waste of time. This would only make sense if the patch had a high risk of back-out, which is unlikely for a style change.
Since you're determined to review this change outside of this bug, I'll just submit the same patch in a new bug and let it block and resolve this bug. (Or WONTFIX this bug since the title says 1px).
Assignee | ||
Comment 22•7 years ago
|
||
(In reply to Johann Hofmann [:johannh] from comment #21)
> Again, I'm implementing the spec. Please ask shorlander. I'm happy to change
> it when you get sign-off from UX but since you're advocating for changing
> the spec, I feel like you should approach them about it (or r+ my patch).
I don't think shorlander cares how this lands and I'm not going to discuss this with him...
> > Ditto, separate bug. We will get complaints about this, as we have before, so I don't want to sneak this in with other changes.
>
> I'm really confused by your hesitation to "sneak in" changes when we've been
> doing this all the time, making broader fixes that are out of scope of the
> specific bugs they were submitted in.
It's always a judgement call. For obviously controversial changes, I prefer to have bugs with clear summaries and justifications for the specific change.
> Landing a 1px fix and then changing this number to match the spec right
> afterwards seems like a waste of time. This would only make sense if the
> patch had a high risk of back-out, which is unlikely for a style change.
Backing out in response to user complaints is certainly an options.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 25•7 years ago
|
||
mozreview-review |
Comment on attachment 8895305 [details]
Bug 1369415 - Share bookmarks toolbar styling to remove cross-platform inconsistencies, adjust bottom padding on Mac to compensate border.
https://reviewboard.mozilla.org/r/166502/#review171658
This patch doesn't add bottom padding on Mac, it removes 2px of bottom padding. Please adjust either the commit message or the CSS value.
Attachment #8895305 -
Flags: review?(jhofmann) → review+
Assignee | ||
Comment 26•7 years ago
|
||
(In reply to Johann Hofmann [:johannh] from comment #25)
> Comment on attachment 8895305 [details]
> Bug 1369415 - Share bookmarks toolbar styling to remove cross-platform
> inconsistencies, add extra bottom padding on Mac.
>
> https://reviewboard.mozilla.org/r/166502/#review171658
>
> This patch doesn't add bottom padding on Mac, it removes 2px of bottom
> padding. Please adjust either the commit message or the CSS value.
"Add" was meant relative to the shared CSS...
Assignee | ||
Updated•7 years ago
|
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8890329 -
Attachment is obsolete: true
Comment 28•7 years ago
|
||
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/01ec784cbfd7
Share bookmarks toolbar styling to remove cross-platform inconsistencies, adjust bottom padding on Mac to compensate border. r=johannh
Assignee | ||
Updated•7 years ago
|
No longer depends on: photon-visual
Assignee | ||
Updated•7 years ago
|
Comment 29•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Comment 30•7 years ago
|
||
I verified this issue on Mac and Windows 10 and from what I see there is 3 px below bookmarks item. Please tell me if that is correct? I also tried to reproduce the bug 1289162 and I can't.
Flags: needinfo?(dao+bmo)
Assignee | ||
Comment 31•7 years ago
|
||
(In reply to ovidiu boca[:Ovidiu] from comment #30)
> I verified this issue on Mac and Windows 10 and from what I see there is 3
> px below bookmarks item. Please tell me if that is correct?
No, it's not. There should be a 1px thin line between a hovered bookmark item and the toolbar's bottom border.
Flags: needinfo?(dao+bmo)
Comment 32•7 years ago
|
||
Please see the attached file, it's a print screen on Mac, and I used xScope2 to measure the pixels.
Assignee | ||
Comment 33•7 years ago
|
||
(In reply to ovidiu boca[:Ovidiu] from comment #32)
> Created attachment 8897790 [details]
> pixels.png
>
> Please see the attached file, it's a print screen on Mac, and I used xScope2
> to measure the pixels.
Looks like you're including the button's bottom edge and the toolbar border in your measurement? The line between the button and the toolbar border is 1px thin in that screenshot as far as I can tell.
Comment 34•7 years ago
|
||
Thanks, I wasn't sure if that measurement is the correct one, that's why I attached the print screen.
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•