Closed
Bug 916953
Opened 12 years ago
Closed 11 years ago
Bookmarks button in overflow panel looks broken
Categories
(Firefox :: Theme, defect)
Firefox
Theme
Tracking
()
RESOLVED
FIXED
Firefox 29
People
(Reporter: Dolske, Assigned: mikedeboer)
References
Details
(Whiteboard: [Australis:P3][strings][good first verify])
Attachments
(4 files, 2 obsolete files)
|
47.23 KB,
image/png
|
Details | |
|
31.69 KB,
image/png
|
Details | |
|
12.72 KB,
patch
|
Gijs
:
review+
|
Details | Diff | Splinter Review |
|
2.01 KB,
patch
|
Gijs
:
review+
|
Details | Diff | Splinter Review |
The separator is missing, and the right-side icon is weirdly offset.
| Reporter | ||
Updated•12 years ago
|
Blocks: australis-navbar
| Assignee | ||
Comment 1•12 years ago
|
||
I think it's good to 'wait' for bug 885086 to be fixed and start fixing other overflow panel styling issues from that baseline.
Depends on: 885086
| Assignee | ||
Updated•12 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Comment 2•12 years ago
|
||
It looks better now, but the button has a single hover style (at least on OS X), which makes it impossible to tell whether clicking is going to open the Library or star/edit-bookmark the current page.
Comment 3•12 years ago
|
||
As this is a landing blocker, we should get an assignee. Gijs or Mike, could one of you take it?
Flags: needinfo?(mdeboer)
Flags: needinfo?(gijskruitbosch+bugs)
Comment 4•12 years ago
|
||
I think the current state is no longer a landing blocker. However, I can probably take it tomorrow if Mike doesn't take it before then.
Flags: needinfo?(gijskruitbosch+bugs)
| Assignee | ||
Comment 5•12 years ago
|
||
I'll take it. I'm afraid it'll need input from UX though.
Assignee: nobody → mdeboer
Status: NEW → ASSIGNED
Flags: needinfo?(mdeboer)
Comment 6•12 years ago
|
||
After a brief discussion on IRC: let's not block landing on this in its current state. It might not be optimal, but it's not nearly as bad as it was.
Whiteboard: [Australis:P3][Australis:M9] → [Australis:P3][Australis:M?]
| Assignee | ||
Comment 7•12 years ago
|
||
What this patch does is
1) add a separator for all OSs for menubuttons in the overflow panel (only applies for the Bookmark button)
2) Fixes the dropmarker icon dimensions on Windows
3) Does not show the hover state of the button inside the menubutton anymore on Windows and Linux (where this was an issue).
Attachment #821707 -
Flags: review?(gijskruitbosch+bugs)
Comment 8•12 years ago
|
||
Comment on attachment 821707 [details] [diff] [review]
Patch 1: introduce separator in overflow panel buttons
Clearing review pending investigation as per IRC discussion related to the double rule here:
+#widget-overflow-list > .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
+#widget-overflow-list > #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
+ padding: 0 6px;
+}
and trying to make the browser.css rule that the second selector is overriding more generic so that that's not necessary.
Attachment #821707 -
Flags: review?(gijskruitbosch+bugs)
Comment 10•12 years ago
|
||
On Windows this looks significantly worse, especially when hovering the item. Also the icon on the right is not displayed completely.
Comment 11•12 years ago
|
||
attachment 8334288 [details]
The click-able area for list should be larger than area of bookmarking.
| Assignee | ||
Comment 12•11 years ago
|
||
Design decision: only add separator.
String change in overflow mode: Change to 'Bookmark This Page'
| Assignee | ||
Comment 13•11 years ago
|
||
Attachment #8363580 -
Flags: review?(gijskruitbosch+bugs)
| Assignee | ||
Updated•11 years ago
|
Attachment #821707 -
Attachment is obsolete: true
Comment 14•11 years ago
|
||
Comment on attachment 8363580 [details] [diff] [review]
Patch 1.1: introduce separator in overflow panel buttons
Review of attachment 8363580 [details] [diff] [review]:
-----------------------------------------------------------------
This patch looks excellent. As we're using generic styling, did you check that this fixes (or at least doesn't make things worse for) the overflow panel styling issues raised in bug 940307 ?
::: browser/themes/windows/browser.css
@@ +1374,5 @@
> #bookmarks-menu-button.bookmark-item > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
> -moz-margin-start: 5px;
> }
>
> +#bookmarks-menu-button[cui-areatype="toolbar"]:not(.overflowedItem) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
This conflicts with the patch Marco just landed. I *think* you need both your :not clause and his, but please doublecheck.
Attachment #8363580 -
Flags: review?(gijskruitbosch+bugs) → review+
Updated•11 years ago
|
Whiteboard: [Australis:P3][Australis:M?] → [Australis:P3]
| Assignee | ||
Comment 15•11 years ago
|
||
Whiteboard: [Australis:P3] → [Australis:P3][fixed-in-fx-team][strings]
| Assignee | ||
Comment 16•11 years ago
|
||
Attachment #8363636 -
Flags: review?(gijskruitbosch+bugs)
Comment 17•11 years ago
|
||
Comment on attachment 8363636 [details] [diff] [review]
Patch 1.2: introduce separator in overflow panel buttons
Review of attachment 8363636 [details] [diff] [review]:
-----------------------------------------------------------------
This is fine, too, please post-commit the following nits:
::: browser/base/content/browser-places.js
@@ +1294,5 @@
> + return;
> +
> + if (!this._starButtonOverflowedLabel) {
> + let browserBundle = Services.strings.createBundle(
> + "chrome://browser/locale/browser.properties");
Nit: gNavigatorBundle.getString("starButtonOverflowed.label");
@@ +1304,5 @@
> + if (!this._starButtonLabel)
> + this._starButtonLabel = button.label;
> +
> + if (button && button.label == this._starButtonLabel)
> + button.setAttribute("label", this._starButtonOverflowedLabel);
Nit: button.label = ...
(alternatively, convert the other usages to getAttribute)
@@ +1319,5 @@
> + return;
> +
> + let button = this.button;
> + if (button && button.label == this._starButtonOverflowedLabel)
> + button.setAttribute("label", this._starButtonLabel);
Nit: the same.
::: browser/components/customizableui/src/CustomizableUI.jsm
@@ +3233,5 @@
> if (child.getAttribute("overflows") != "false") {
> this._collapsed.set(child.id, this._target.clientWidth);
> child.classList.add("overflowedItem");
> child.setAttribute("cui-anchorid", this._chevron.id);
> + CustomizableUIInternal.notifyListeners("onWidgetOverflow", child, this._target);
These should be documented with the other event listeners both in this file and on the MDN page for the module. There might even be a bug on file about this.
Attachment #8363636 -
Flags: review?(gijskruitbosch+bugs) → review+
| Assignee | ||
Comment 18•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Attachment #8363580 -
Attachment is obsolete: true
Comment 19•11 years ago
|
||
let button = this.button;
if (!this._starButtonLabel)
this._starButtonLabel = button.label;
if (button
using button before null-checking it looks unhealthy
Comment 20•11 years ago
|
||
(In reply to Marco Bonardo [:mak] from comment #19)
> let button = this.button;
> if (!this._starButtonLabel)
> this._starButtonLabel = button.label;
> if (button
>
> using button before null-checking it looks unhealthy
This is a fair point. In fact, why isn't that code using aNode - isn't that guaranteed to be the node we care about anyway?
Flags: needinfo?(mdeboer)
| Assignee | ||
Comment 21•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #20)
> This is a fair point. In fact, why isn't that code using aNode - isn't that
> guaranteed to be the node we care about anyway?
It is. I'll post a follow-up patch shortly.
Flags: needinfo?(mdeboer)
| Assignee | ||
Comment 22•11 years ago
|
||
Attachment #8363729 -
Flags: review?(gijskruitbosch+bugs)
Comment 23•11 years ago
|
||
Comment on attachment 8363729 [details] [diff] [review]
Patch 2: follow-up
Review of attachment 8363729 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
Attachment #8363729 -
Flags: review?(gijskruitbosch+bugs) → review+
| Assignee | ||
Comment 24•11 years ago
|
||
Comment 25•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/767ee9d0f0c1
https://hg.mozilla.org/mozilla-central/rev/c6aad335ea99
https://hg.mozilla.org/mozilla-central/rev/b96543b9edd5
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3][fixed-in-fx-team][strings] → [Australis:P3][strings]
Target Milestone: --- → Firefox 29
Updated•11 years ago
|
Whiteboard: [Australis:P3][strings] → [Australis:P3][strings][good first verify]
You need to log in
before you can comment on or make changes to this bug.
Description
•