Page MenuHomePhabricator

Minor visual refinements pin-button: state and margin
Closed, ResolvedPublic

Assigned To
Authored By
Jan_Dittrich
Sep 15 2016, 7:50 AM
Referenced Files
F4688387: rs_pin_chrome_padding.jpg
Nov 2 2016, 1:38 PM
F4688310: rs_pin_ie.jpg
Nov 2 2016, 1:03 PM
F4688307: rs_pin_firefox.jpg
Nov 2 2016, 1:03 PM
F4688297: rs_pin_chrome_nozoom.jpg
Nov 2 2016, 1:03 PM
F4688303: rs_pin_chrome_zoom.jpg
Nov 2 2016, 1:03 PM
F4685209: pasted_file
Nov 1 2016, 5:22 PM
F4470585: Screenshot from 2016-09-15 09-09-58.png
Sep 15 2016, 7:50 AM
F4470591: Screenshot from 2016-09-15 09-09-58_ex.png
Sep 15 2016, 7:50 AM

Description

Story: As a user I would like to see easily in which state the pin button of the revision slider is.

Screenshot from 2016-09-15 09-09-58.png (73×183 px, 1 KB)

There are some minor enhancements I would like to propose. They may be not possible in the OOUI framework. If that is the case, please tell me, so I can consider such things in the future.

  1. Margin:

The button (which shape is only visible when activated) is as big as the title bar of the revision slider. Thus, the button looks not very button-ish anymore if it is activated
If we make it 2 or 3 px smaller on each side it would look more like something you can click again

Screenshot from 2016-09-15 09-09-58_ex.png (73×183 px, 1008 B)

  1. Active status: The dark gray as the activated status seems unusual to me. According to the OOUI demo it seems to be darkblue.(see ToggleButtonWidget (icon only)‎)

So darkblue might be better according to the styleguide.

Problem is: It looks very heavvy:

Screenshot from 2016-09-15 09-09-58_ex2.png (73×183 px, 1 KB)

Does anyone of you know any alternative way or could subscribe someone who knows about the visual design of OOUI well?

  1. active status icon: If active, the icon should look pinned.

@Charlie_WMDE – I remember you designed once a "pinned pin" icon. If I'm right, could you link it here?

Event Timeline

Active status: The dark gray as the activated status seems unusual to me. According to the OOUI demo it seems to be darkblue.(see ToggleButtonWidget (icon only)‎)

Looks like this colour change has happened recently (was relesed in version 0.17.9 released a week ago). MediaWiki's core switched to use the new version already, so I am guessing WMF wikis will get new colours this week (Wikipedias on Thursday evening European time). So I believe there is no action required regarding the colour in "enabled" state.
Of course margin change won't happen automatically and it still needs to be done.

Original icons designed by @Charlie_WMDE were posted in https://phabricator.wikimedia.org/T142196#2539938

Sorry for the late answer. Didn't get around to catching up on phabricator sooner. Thanks for linking the files.
If there's anything else I can help with, I'm ping-able again :)

Change 318543 had a related patch set uploaded (by Tobias Gritschacher):
Add margin to pin button

https://gerrit.wikimedia.org/r/318543

  1. solved by https://gerrit.wikimedia.org/r/318543
  2. this got changed in core, so it is blue now for a while already
  3. I'm unsure about this as for the current size of the icon, the difference between unpinned and pinned can hardly be recognized. Probably not worth the effort of adding another icon.

See the new button in

pasted_file (231×1 px, 16 KB)
introduced in https://gerrit.wikimedia.org/r/#/c/318543/

If this gets approved by design then we can +2 it straight away!
@Jan_Dittrich @Charlie_WMDE

@Addshore is the change a slight border to the button? I can hardly see it and it seems to only be on top. Is this correct?

Would it be possible to have it look more like in the mock in the description? With a visibly clearer border on all sides.

@Addshore is the change a slight border to the button? I can hardly see it and it seems to only be on top. Is this correct?

Would it be possible to have it look more like in the mock in the description? With a visibly clearer border on all sides.

I have commented on the CR!

@Addshore is the change a slight border to the button? I can hardly see it and it seems to only be on top. Is this correct?

Would it be possible to have it look more like in the mock in the description? With a visibly clearer border on all sides.

@Charlie_WMDE
IMO this is a Chrome-only issue. In Chrome without zooming in, it looks like in @Addshore's example.

rs_pin_chrome_nozoom.jpg (273×507 px, 10 KB)

If you zoom in, it looks fine:
rs_pin_chrome_zoom.jpg (271×493 px, 10 KB)

In Firefox it also looks fine:
rs_pin_firefox.jpg (279×610 px, 15 KB)

And even in Internet Explorer it seems to work:
rs_pin_ie.jpg (251×451 px, 9 KB)

So, @Charlie_WMDE, should I add still more space there? I could increase it a little bit but adding too much it also starts to look odd again. Also, it won't solve the Chrome issue.

Ok, @Charlie_WMDE, I've added some additional padding now in https://gerrit.wikimedia.org/r/#/c/318543/2 and it now seems to look fine in Chrome too!

rs_pin_chrome_padding.jpg (286×563 px, 11 KB)

Change 318543 merged by jenkins-bot:
Add margin to pin button

https://gerrit.wikimedia.org/r/318543

Addshore moved this task from Currently in sprint to Done on the WMDE-TechWish board.