Closed Bug 916953 Opened 12 years ago Closed 11 years ago

Bookmarks button in overflow panel looks broken

Categories

(Firefox :: Theme, defect)

defect
Not set
normal

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)

Attached image Screenshot
The separator is missing, and the right-side icon is weirdly offset.
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
OS: Mac OS X → All
Hardware: x86 → All
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.
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)
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)
I'll take it. I'm afraid it'll need input from UX though.
Assignee: nobody → mdeboer
Status: NEW → ASSIGNED
Flags: needinfo?(mdeboer)
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?]
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 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)
Attached image screenshot (windows)
On Windows this looks significantly worse, especially when hovering the item. Also the icon on the right is not displayed completely.
attachment 8334288 [details] The click-able area for list should be larger than area of bookmarking.
Design decision: only add separator. String change in overflow mode: Change to 'Bookmark This Page'
Attachment #8363580 - Flags: review?(gijskruitbosch+bugs)
Attachment #821707 - Attachment is obsolete: true
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+
Whiteboard: [Australis:P3][Australis:M?] → [Australis:P3]
Whiteboard: [Australis:P3] → [Australis:P3][fixed-in-fx-team][strings]
Attachment #8363636 - Flags: review?(gijskruitbosch+bugs)
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+
Attachment #8363580 - Attachment is obsolete: true
let button = this.button; if (!this._starButtonLabel) this._starButtonLabel = button.label; if (button using button before null-checking it looks unhealthy
(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)
(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)
Attachment #8363729 - Flags: review?(gijskruitbosch+bugs)
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+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3][fixed-in-fx-team][strings] → [Australis:P3][strings]
Target Milestone: --- → Firefox 29
Depends on: 963551
Whiteboard: [Australis:P3][strings] → [Australis:P3][strings][good first verify]
Depends on: 983655
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: