Last modified: 2014-09-17 23:42:00 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 T67317, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65317 - Preferences: Update button classes and layout to use mediawiki.ui classes and conventions
Preferences: Update button classes and layout to use mediawiki.ui classes and...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
MediaWiki UI (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 70975 (view as bug list)
Depends on:
Blocks: 70913
  Show dependency treegraph
 
Reported: 2014-05-14 21:28 UTC by Jared Zimmerman (WMF)
Modified: 2014-09-17 23:42 UTC (History)
8 users (show)

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


Attachments
Mediawiki.ui Normal and Quiet buttons for Preferences (19.84 KB, image/png)
2014-05-14 21:28 UTC, Jared Zimmerman (WMF)
Details

Description Jared Zimmerman (WMF) 2014-05-14 21:28:39 UTC
Created attachment 15387 [details]
Mediawiki.ui Normal and Quiet buttons for Preferences

Right align controls, swap order and use Normal style for [Update Preferences] (formerly "Save") and mediawiki.ui.quite for Restore Default Preferences (formerly "Restore all default settings (in all sections)")
Comment 1 WhatamIdoing 2014-06-30 23:40:36 UTC
I like the idea of right-aligning the controls and swapping the order.

I'm uncertain about "Update Preferences".  Perhaps "Save changes"?  

I'd rather that the "Restore defaults" bit looked like an actual button (maybe a thin grey line around it?).
Comment 2 Jared Zimmerman (WMF) 2014-07-01 00:12:00 UTC
WhatamIdoing, the rationale for Update Preferences is that in mediawiki.ui we're trying to have more specific action buttons that are clear about what you're doing rather than generalities. I'm happy to iterate on the exact language, but I'd love it to make mention of what you're saving/updating/confirming.

the restore defaults is in the mewdiawiki.ui "quiet" state that you'll be seeing a lot more once we're fully integrated into core with all the button styles. I know it might not feel as buttony as you're used to but hopefully with ios 7 and android L becoming more prevalent people will get used to a "button" that is just text (isn't that what wikipedia is already?)

We have a Neutral style button that is white with a surround that we could go to is people are getting confused, but ideally this is a binary option and the pairing of normal and quiet buttons, is just what this is made for.
Comment 3 Matthew Flaschen 2014-07-01 01:13:09 UTC
"Restore default preferences" seems like a perfect mw-ui-destructive.

It erases *all* your preferences and (unlike most on-wiki actions) it is not undoable.  However, there is a confirm step.  Not sure if destructive should be on both, or just the final action (the confirm button that actually erases your preferences).
Comment 4 Matthew Flaschen 2014-07-01 01:14:01 UTC
Also, "in all sections" is verbose, but that should be conveyed somehow if possible (otherwise, people might think it was only the current tab).  Perhaps it is enough to put it on the confirmation screen.
Comment 5 Jared Zimmerman (WMF) 2014-07-01 06:31:13 UTC
@Matt,

Good thinking, lets use neutral.quite for "Restore defaults" and something like destructive.normal for [Reset All Preferences] with quiet Cancel as the secondary action within the dialog. I think it would be weird to have two destructive in a row, and its not actually destructive (yet) until you hit the second dialog.
Comment 6 Jon 2014-08-28 18:19:12 UTC
The button is now green with $wgEnableMediaWikiUIEverywhere
You can see this in action on:
http://en.m.wikipedia.beta.wmflabs.org/wiki/Special:Preferences
Comment 7 Gerrit Notification Bot 2014-08-28 18:51:00 UTC
Change 156838 had a related patch set uploaded by Jdlrobson:
Update preferences form buttons

https://gerrit.wikimedia.org/r/156838
Comment 8 Gerrit Notification Bot 2014-09-01 20:07:32 UTC
Change 157709 had a related patch set uploaded by TheDJ:
Correct button colours of preference page when $wgUseMediaWikiUIEverywhere is enabled

https://gerrit.wikimedia.org/r/157709
Comment 9 Jon 2014-09-01 20:09:20 UTC
I broke out the alignment change into bug 70269
Comment 10 Gerrit Notification Bot 2014-09-17 01:12:40 UTC
Change 157709 merged by jenkins-bot:
Correct button colours of preference page when $wgUseMediaWikiUIEverywhere is enabled

https://gerrit.wikimedia.org/r/157709
Comment 11 Jon 2014-09-17 23:42:00 UTC
*** Bug 70975 has been marked as a duplicate of this bug. ***

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


Navigation
Links