Last modified: 2014-09-23 17:03:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57535, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55535 - Add icon support for mediawiki.ui buttons
Add icon support for mediawiki.ui buttons
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
MediaWiki UI (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Sam Smith
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-09 22:53 UTC by Matthew Flaschen
Modified: 2014-09-23 17:03 UTC (History)
14 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
GettingStarted modal showing icon buttons (302.23 KB, image/png)
2013-10-09 23:03 UTC, Matthew Flaschen
Details

Description Matthew Flaschen 2013-10-09 22:53:01 UTC
GettingStarted wanted icons for the buttons, so we temporarily implemented the required supplemental CSS in the extension.  This should be moved to core.
Comment 1 Matthew Flaschen 2013-10-09 23:03:16 UTC
Created attachment 13463 [details]
GettingStarted modal showing icon buttons

This shows an example modal from GettingStarted.  This appearance is not necessarily exactly how the core version would look.

Also, the buttons can be implemented before the modal.
Comment 2 Jared Zimmerman (WMF) 2013-10-09 23:11:18 UTC
Thank you for the request. This is exactly how i'd hoped this process would work.

It looks like in this instance its not only a button with an image, but a button that allows multiple lines of differently styled text within one button. Is the desire to keep this as well, or just extend the primary CTA buttons to support images?
Comment 3 Matthew Flaschen 2013-10-09 23:17:33 UTC
I think that's open to discussion.  We should also make sure we actually want this.  I note it's not in the spec.  I realize that spec isn't final, but we should bear in mind everything we add has a cost in maintenance, and potentially offers multiple ways to do the same thing.
Comment 4 Jared Zimmerman (WMF) 2013-10-09 23:38:12 UTC
If this is the only place this is used I would ask the PM on the feature to decide if its absolutely required, as you mentioned its not used anywhere else. I can certainly see the need for a CTA button with image, i'm not questioning that. but the multi-line button seems like it might be either so specialized that it doesn't belong in Agora Controls or it isn't the right design to begin with if we want to drive consistency. 

I'm going to start a page on wiki that starts to cover what control types we have and add a place for requests. eventually we can turn this into the living spec that is our end goal
Comment 5 Steven Walling 2013-10-09 23:42:59 UTC
(In reply to comment #4)
> If this is the only place this is used I would ask the PM on the feature to
> decide if its absolutely required, as you mentioned its not used anywhere
> else.
> I can certainly see the need for a CTA button with image, i'm not questioning
> that. but the multi-line button seems like it might be either so specialized
> that it doesn't belong in Agora Controls or it isn't the right design to
> begin
> with if we want to drive consistency. 
> 
> I'm going to start a page on wiki that starts to cover what control types we
> have and add a place for requests. eventually we can turn this into the
> living
> spec that is our end goal

We'll have hard data in about a week, but so far usability testing has strongly suggested that the second line explanation on the CTA is very useful for users. One person even suggested they probably would not have accepted the CTA without the additional assurance that help would be provided.[1]

1. https://www.mediawiki.org/wiki/Onboarding_new_Wikipedians/user_testing#Testing_scenario_four
Comment 6 Jared Zimmerman (WMF) 2013-10-09 23:44:12 UTC
Sorry if i was unclear, just questioning whether the help text need to be IN the button
Comment 7 spage 2013-10-10 23:19:14 UTC
(In reply to comment #1)
> Created attachment 13463 [details]
> GettingStarted modal showing icon buttons

The Flow prototype's "Thanks" button and "Hide/Delete/Suppress" button group also feature icons, see https://www.mediawiki.org/wiki/File:Buttons_Flyout.png

FWIW Flow's implementation uses a LESS .buttonIcon() function, <https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FFlow.git/HEAD/modules%2Fdiscussion%2Fstyles%2Fpost.less>
Comment 8 Jared Zimmerman (WMF) 2013-10-10 23:29:17 UTC
Starting the catalog here. Thanks for posting these. 

https://www.mediawiki.org/wiki/Wikimedia_Foundation_Design/Agora_Control_Library
Comment 9 Matthew Flaschen 2014-02-04 22:07:00 UTC
Related: GettingStarted is also using mw-ui-primary, which is now deprecated, for one of the icon buttons.  As part of standardization, we should drop that class.
Comment 10 Gerrit Notification Bot 2014-06-13 14:11:05 UTC
Change 139368 had a related patch set uploaded by Phuedx:
Add icon support to .mw-ui-button

https://gerrit.wikimedia.org/r/139368
Comment 11 Gerrit Notification Bot 2014-07-04 10:43:33 UTC
Change 144141 had a related patch set uploaded by Phuedx:
Test the .mw-ui-button-with-icon-bgimage mixin

https://gerrit.wikimedia.org/r/144141
Comment 12 Gerrit Notification Bot 2014-09-05 12:37:22 UTC
Change 144141 abandoned by Phuedx:
Test .mw-ui-icon classes and mixins

Reason:
This change has been squashed into its parent so that it has a good working example.

https://gerrit.wikimedia.org/r/144141
Comment 13 Gerrit Notification Bot 2014-09-05 15:17:20 UTC
Change 158632 had a related patch set uploaded by Jdlrobson:
WIP: Add mw-ui-icon

https://gerrit.wikimedia.org/r/158632
Comment 14 Gerrit Notification Bot 2014-09-23 12:54:16 UTC
Change 139368 abandoned by Phuedx:
[EXPERIMENT] Add icon mixins to mediawiki.ui

Reason:
Abandoning in favour of I68a1b207d8a4af57879361921a5f8c3aeda3fd9a.

https://gerrit.wikimedia.org/r/139368
Comment 15 Gerrit Notification Bot 2014-09-23 16:28:38 UTC
Change 158632 merged by jenkins-bot:
Add mw-ui-icon

https://gerrit.wikimedia.org/r/158632
Comment 16 Jon 2014-09-23 17:03:03 UTC
Actually using these buttons should be put into a separate bug report and tied to bug 71180

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links