Closed
Bug 867543
Opened 11 years ago
Closed 11 years ago
Change - Context app bar buttons should have labels
Categories
(Firefox for Metro Graveyard :: App Bar, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: sfoster, Assigned: jwilde)
References
Details
(Whiteboard: feature=change c=firefox_start u=metro_firefox_user p=5)
Attachments
(3 files, 4 obsolete files)
8.27 KB,
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
3.91 KB,
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
13.33 KB,
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
Mockups show text labels below the icons for the context app bar buttons. This helps disambiguate the icons. Label text will need to be localized. See: https://bug808770.bugzilla.mozilla.org/attachment.cgi?id=679763 ..and another mockup which I'm so far unable to locate.
Reporter | ||
Comment 1•11 years ago
|
||
Visual mockup of contextual actions for top sites tile selections: https://bug836387.bugzilla.mozilla.org/attachment.cgi?id=726419
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → sfoster
Updated•11 years ago
|
Updated•11 years ago
|
Status: NEW → ASSIGNED
Updated•11 years ago
|
Assignee: sfoster → fyan
Updated•11 years ago
|
No longer blocks: metrov1triage
Updated•11 years ago
|
Assignee: fryn → jwilde
Assignee | ||
Updated•11 years ago
|
Summary: Context app bar buttons should have labels → Change - Context app bar buttons should have labels
Assignee | ||
Comment 3•11 years ago
|
||
Assignee | ||
Comment 4•11 years ago
|
||
Previous patch was the wrong one. This patch does some cleanup that'll make future work on this and the navbar somewhat easier and less fragile.
Attachment #775907 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #775911 -
Flags: review?(mbrubeck)
Updated•11 years ago
|
Attachment #775911 -
Flags: review?(mbrubeck) → review+
Updated•11 years ago
|
Blocks: 835623, metrov1it11
Priority: -- → P2
QA Contact: jbecerra
Whiteboard: p=5 → feature=change c=main_ui_reorganization u=metro_firefox_user p=5
Updated•11 years ago
|
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #776095 -
Flags: review?(mbrubeck)
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 776095 [details] [diff] [review] part2 - adding styling for labels below buttons on the appbar Review of attachment 776095 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/metro/base/content/browser.xul @@ +290,4 @@ > <toolbarbutton id="stop-button" command="cmd_stop"/> > </hbox> > > + <toolbarbutton id="download-button" class="appbar-secondary" oncommand="Appbar.onDownloadButton()"/> This hunk should've been in the part1 patch. ::: browser/metro/theme/platform.css @@ +684,5 @@ > + /* Slow the bottom up transition since it's impossible to match the system's > + soft keyboard movement. */ > + transition: transform @metro_animation_duration@ @metro_animation_easing@, > + bottom @appbar_keyboard_slideup_duration@ @metro_animation_easing@; > +} Same for this.
Assignee | ||
Comment 8•11 years ago
|
||
Attachment #775911 -
Attachment is obsolete: true
Assignee | ||
Comment 9•11 years ago
|
||
Attachment #776095 -
Attachment is obsolete: true
Attachment #776095 -
Flags: review?(mbrubeck)
Assignee | ||
Comment 10•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #776141 -
Flags: review?(mbrubeck)
Assignee | ||
Updated•11 years ago
|
Attachment #776143 -
Flags: review?(mbrubeck)
Assignee | ||
Updated•11 years ago
|
Attachment #776145 -
Flags: review?(mbrubeck)
Assignee | ||
Comment 11•11 years ago
|
||
Refining naming of the Map instance.
Attachment #776145 -
Attachment is obsolete: true
Attachment #776145 -
Flags: review?(mbrubeck)
Attachment #776147 -
Flags: review?(mbrubeck)
Updated•11 years ago
|
Attachment #776141 -
Flags: review?(mbrubeck) → review+
Comment 12•11 years ago
|
||
Comment on attachment 776143 [details] [diff] [review] part2 - adding styling for labels below buttons on the appbar Review of attachment 776143 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/metro/theme/browser.css @@ +415,5 @@ > transition-delay: 80ms; > } > +#contextualactions-tray > toolbarbutton > .toolbarbutton-text { > + color: white; > +} Can you just do #contextualactions-tray { color: white; } and let the button text inherit it? ::: browser/metro/theme/platform.css @@ +497,4 @@ > /* Make the link take up all the space before the buttons. */ > -moz-box-flex: 9999; > } > +appbar toolbar[labelled=true] { optional style nit: I prefer to use just "toolbar[labelled]" for boolean attributes (just for aesthetics and conciseness).
Attachment #776143 -
Flags: review?(mbrubeck) → review+
Comment 13•11 years ago
|
||
Comment on attachment 776147 [details] [diff] [review] part3 - implement labels, with correct pluralization and locale support Review of attachment 776147 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/metro/base/content/TopSites.js @@ +247,5 @@ > // fire a MozContextActionsChange event to update the context appbar > let event = document.createEvent("Events"); > event.actions = [...nextContextActions]; > + event.noun = tileGroup.contextNoun; > + event.qty = selectedTiles.length; Could the event listener in appbar.js retrieve these from the event target (the <richgrid>) rather than having each event sender do it? I guess we'd still need special logic for the quantity of deleted/hidden items somewhere. Maybe the better way to reduce code duplication in the long run is to share more code between the various grid controllers.
Attachment #776147 -
Flags: review?(mbrubeck) → review+
Reporter | ||
Comment 14•11 years ago
|
||
Yeah I think the idea was always that we would be able to refactor the grid controllers at the point when we know more about what common functionality they needed to share. I'm in this same bit of code while working on bug 876033, where the undo delete functionality will need to be shared in some way across all the controllers eventually. Maybe creating a simple View base class or prototype which each of the *Views inherit from will give us something to build on and tackle this incrementally.
Assignee | ||
Comment 15•11 years ago
|
||
(In reply to Matt Brubeck (:mbrubeck) from comment #12) > Comment on attachment 776143 [details] [diff] [review] > part2 - adding styling for labels below buttons on the appbar > > Review of attachment 776143 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: browser/metro/theme/browser.css > @@ +415,5 @@ > > transition-delay: 80ms; > > } > > +#contextualactions-tray > toolbarbutton > .toolbarbutton-text { > > + color: white; > > +} > > Can you just do #contextualactions-tray { color: white; } and let the button > text inherit it? Not without !important, but putting color: white; in #contextualactions-tray > toolbarbutton works. I'd assume that the latter is preferable since it lets us drop a selector, but also prevent the rapid expansion of the !important?
Comment 16•11 years ago
|
||
(In reply to Jonathan Wilde [:jwilde] from comment #15) > > Can you just do #contextualactions-tray { color: white; } and let the button > > text inherit it? > > Not without !important, but putting color: white; in #contextualactions-tray > > toolbarbutton works. I'd assume that the latter is preferable since it > lets us drop a selector, but also prevent the rapid expansion of the > !important? Ah, I see. In that case, I'd stick with your original .toolbarbutton-text selector. The class selector has potential performance benefits over "toolbarbutton", and expresses the intent nicely.
Assignee | ||
Comment 17•11 years ago
|
||
(In reply to Sam Foster [:sfoster] from comment #14) > Yeah I think the idea was always that we would be able to refactor the grid > controllers at the point when we know more about what common functionality > they needed to share. > I'm in this same bit of code while working on bug 876033, where the undo > delete functionality will need to be shared in some way across all the > controllers eventually. Maybe creating a simple View base class or prototype > which each of the *Views inherit from will give us something to build on and > tackle this incrementally. So, in terms of plan of action on this bug, should we land as-is and file a follow-up refactoring bug to make a generic *View prototype?
Comment 18•11 years ago
|
||
(In reply to Jonathan Wilde [:jwilde] from comment #17) > So, in terms of plan of action on this bug, should we land as-is and file a > follow-up refactoring bug to make a generic *View prototype? Yes, feel free to land as-is.
Assignee | ||
Comment 19•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ae1a8bea0943 https://hg.mozilla.org/integration/mozilla-inbound/rev/c237d7e7230e https://hg.mozilla.org/integration/mozilla-inbound/rev/47fce66eae89
Comment 20•11 years ago
|
||
Hi, about plural forms https://hg.mozilla.org/integration/mozilla-inbound/diff/ae1a8bea0943/browser/metro/locales/en-US/chrome/browser.properties Sadly some of our tools (compare-locales) and some external tools used for localization rely on the presence of this comment to identify a string with plural form. # LOCALIZATION NOTE (STRINGID): Semi-colon list of plural forms. # See: http://developer.mozilla.org/en/docs/Localization_and_Plurals The bad part is that his comment must be added before each string using a plural form.
Comment 21•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/47fce66eae89 https://hg.mozilla.org/mozilla-central/rev/c237d7e7230e https://hg.mozilla.org/mozilla-central/rev/ae1a8bea0943
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 22•11 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #20) > Hi, > about plural forms > https://hg.mozilla.org/integration/mozilla-inbound/diff/ae1a8bea0943/browser/ > metro/locales/en-US/chrome/browser.properties > > Sadly some of our tools (compare-locales) and some external tools used for > localization rely on the presence of this comment to identify a string with > plural form. > > # LOCALIZATION NOTE (STRINGID): Semi-colon list of plural forms. > # See: http://developer.mozilla.org/en/docs/Localization_and_Plurals > > The bad part is that his comment must be added before each string using a > plural form. Thank you! :D Filed a followup bug 894949.
Comment 23•11 years ago
|
||
User Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:26.0) Gecko/20100101 Firefox/26.0 Build ID: 20130806104538 Built from http://hg.mozilla.org/mozilla-central/rev/1e381c91885d WFM Tested on windows 8 using latest nightly. I see text labels below every icons
Comment 24•11 years ago
|
||
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 Build ID: 20130815030203 Built from http://hg.mozilla.org/mozilla-central/rev/a8daa428ccbc WFM Tested on windows 8 using latest nightly for iteration-12. I see text labels below every icons.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•