Last modified: 2014-10-14 05:04:31 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 T73209, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71209 - Update disabled state for buttons
Update disabled state for buttons
Status: NEW
Product: MediaWiki
Classification: Unclassified
MediaWiki UI (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Prateek Saxena
:
Depends on:
Blocks: 70913
  Show dependency treegraph
 
Reported: 2014-09-24 00:11 UTC by Prateek Saxena
Modified: 2014-10-14 05:04 UTC (History)
8 users (show)

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


Attachments
buttons-disabled (29.38 KB, image/png)
2014-09-24 00:11 UTC, Prateek Saxena
Details
Disabled buttons #EEE (16.38 KB, image/png)
2014-09-25 22:47 UTC, May
Details

Description Prateek Saxena 2014-09-24 00:11:24 UTC
Created attachment 16571 [details]
buttons-disabled

Update the buttons styling to reflect the new spec (attached)
Comment 1 Prateek Saxena 2014-09-25 22:12:11 UTC
I want to discuss a few things before implementing this-

1. Buttons right now don't have borders on the side so that the bevel that shows up on hover reaches till the corners - I00f905690e2934e972cc4ffc26631ead7c2d7567. The width of the disabled buttons will change if we don't add the borders on the side. 

2. We can't use the 'lighten' mixin that sass provides for these colors. They'll have to be defined in variables.less. We will also have to move the declaration of the disabled pseudo class from /src/mediawiki.less/mediawiki.ui/mixins.less to /src/mediawiki.ui/components/buttons.less and define it for each button (constructive, progressive…) separately.

If we are fine with these two points I can get a patch ready.
Comment 2 Prateek Saxena 2014-09-25 22:25:17 UTC
If a buttons goes from enabled to disabled and is in the toolbar it'll make everything shift. This will happen with the "Add Topic" button in Flow.
Comment 3 May 2014-09-25 22:47:42 UTC
Created attachment 16596 [details]
Disabled buttons #EEE
Comment 5 May 2014-09-25 22:55:41 UTC
With the previous mock up, I wanted to keep the same uninviting look as the Neutral disabled on other colored buttons, but it seems like keeping the solid background on disabled is less busy and the change from disabled to active more drastic. 

Instead of all outlined disabled button, it will be all solid disabled buttons regardless of neutral of progressive.
Comment 6 Jared Zimmerman (WMF) 2014-09-25 22:58:37 UTC
I'd like us to be very purposeful with color, in a mostly monochrome, color is a powerful tool for drawing the users attention, I think with colorful (even slightly less so) disabled elements we really muddle the glanceability of where should i focus my attention, and what is my next step, so +1
Comment 7 Matthew Flaschen 2014-09-30 04:00:51 UTC
(In reply to Prateek Saxena from comment #1)
> 2. We can't use the 'lighten' mixin that sass provides for these colors.

How come?  lessphp provides it too, and we're using it in anchors.less (https://git.wikimedia.org/blob/mediawiki%2Fcore.git/2daac5f36a4de903c5e6978711ffb9fe696458f1/resources%2Fsrc%2Fmediawiki.ui%2Fcomponents%2Fanchors.less#L16).
Comment 8 Prateek Saxena 2014-09-30 17:19:10 UTC
(In  reply to Matthew Flaschen from comment #7)
> How come?  lessphp provides it too, and we're using it in anchors.less

I tried using it but it wasn't producing the light color according to May. It makes it look neon.
Comment 9 May 2014-09-30 17:26:14 UTC
We tried to generate lighter colors mathematically but there wasn't a reliable way to generate something that we can appropriately use. Like Prateek mentioned, it appeared too neon if we tweaked the HSB value. Some color values are already maxed out on HSB value and wasn't possible to plus or minus from the HSB. 

Still finding a way to make this better. For now, we're relying on actual values for most of them.
Comment 10 Matthew Flaschen 2014-10-02 02:33:21 UTC
(In reply to May from comment #9)
> We tried to generate lighter colors mathematically but there wasn't a
> reliable way to generate something that we can appropriately use. Like
> Prateek mentioned, it appeared too neon if we tweaked the HSB value. Some
> color values are already maxed out on HSB value and wasn't possible to plus
> or minus from the HSB. 
> 
> Still finding a way to make this better. For now, we're relying on actual
> values for most of them.

Thanks, I appreciate the information.
Comment 11 Prateek Saxena 2014-10-14 04:58:47 UTC
May, the new spec just has a gray background for all disabled states, right?
Comment 12 May 2014-10-14 05:04:31 UTC
(In reply to Prateek Saxena from comment #11)
> May, the new spec just has a gray background for all disabled states, right?

Yep, all buttons look the same on disabled state.

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


Navigation
Links