Last modified: 2014-04-29 13:59:20 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 T39744, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37744 - jquery.ui.button: Color classes only implemented in jquery.ui vector theme
jquery.ui.button: Color classes only implemented in jquery.ui vector theme
Status: NEW
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.21.x
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 44881 44856
  Show dependency treegraph
 
Reported: 2012-06-20 15:26 UTC by Rainer Rillke @commons.wikimedia
Modified: 2014-04-29 13:59 UTC (History)
5 users (show)

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


Attachments

Description Rainer Rillke @commons.wikimedia 2012-06-20 15:26:31 UTC
static-1.20wmf5/resources/jquery.ui/themes/vector/jquery.ui.button.css

There is not color-highlighting of buttons in Monobook-skin. Features should be consistent between different skins.

Sample: 
* http://en.wikipedia.org/wiki/Consistancy?useskin=monobook#footer
* http://en.wikipedia.org/wiki/Consistancy?useskin=vector#footer
Comment 1 Krinkle 2012-12-30 21:55:54 UTC
The Vector theme for jQuery UI changes the color from light grey to dark grey on hover for normal buttons. And from blue to darker blue in .ui-button-blue definition.

The Default jQuery UI theme (there is no "Monobook-skin button" there is jQuery UI default's theme from upstream and a custom theme for Vector) does the same, except that it has no ".ui-button-blue" declaration.

The default jQuery UI theme (used in all skins other than Vector) also change the color from light grey to dark grey on hover for normal buttons.

See also http://jqueryui.com/button/

What is the bug?
Comment 2 Rainer Rillke @commons.wikimedia 2012-12-31 21:12:55 UTC
(In reply to comment #1)
First changing the title of this bug to something different and then asking what the bug is, is inacceptable behaviour.

It was *not* about hovering. It was about the blue color of the button in vector and that this color is not present in other skins.

When you e.g. design JS-applications using vector by default and make a green OK-button and a red cancel-button or similar, as a usability improvement, you are surprised when testing with other skins that there's no such "colour-highlighting". If I would have meant hovering, I would have written so or used the term "onmouseover".
Comment 3 Krinkle 2013-01-02 09:16:43 UTC
(In reply to comment #2)
> (In reply to comment #1)
> First changing the title of this bug to something different and then asking
> what the bug

Hold your horses. All I did is:
1. Correct a typo ("query" -> jquery)
2. Removed incorrect statement ("jquery.ui.button not implemented in monobook"), because it is implemented for a long time and is working fine.
3. Replaced #2 with an actual problem based on your post ("no highlighting"). I assumed that by color-highlighting you meant highlighting where the color becomes lighter when you hover it. I understand you meant the custom color classes instead (which isn't called "highlighting").

Fixed the title, again.

Now, as for these color classes. The reason they are not in other skins is because they are not standard jQuery UI classes. So jQuery UI themes (including the Default, Sunny, Redmond, Smoothness theme etc.) don't define this class.

Trevor invented it back in 2011 and added[1] it as a hack in the jquery.ui/vector theme directory. We need to either:
* get it standardised (long term)
* fork default, add the hack, and apply it to all other skins (short term)


[1] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=commitdiff;h=7771f2d25e0ff59518130bab4da042154dc908d8
Comment 4 Isarra 2013-03-17 20:58:18 UTC
I feel like replacing the default with rectangles. (Taking bug for reals now.)
Comment 5 Isarra 2014-02-08 06:03:31 UTC
Apparently I'm not reliable, nevermind. >.<
Comment 6 Quiddity 2014-04-26 17:16:15 UTC
Rainier, given that Vector is moving towards using these styles: http://tools.wmflabs.org/styleguide/desktop/section-2.html

Should Monobook (and other skins) match that?
or should they use the old/previous jquery.ui.button look?
or should they stick with their current look?

(Sidenote: More details at [[mw:UX standardization]] )
Comment 7 Rainer Rillke @commons.wikimedia 2014-04-29 13:59:20 UTC
(In reply to Quiddity from comment #6)
> Should Monobook (and other skins) match that?
The important thing is that the intentions developers usually had using colors are reflected in all skins. Whether it is the use of colors in these skins or the use of thicker borders, font or any other style - if it fits better into this skin - doesn't matter a lot.

I however can imagine that .ui-button-green and friends have been used not only to signal one discrete intention/meaning. Therefore the easiest option I could imagine would be going with your suggestion #1 - match the .mw-ui* styles.

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


Navigation
Links