Page MenuHomePhabricator

[User links] Design fixes
Closed, ResolvedPublic3 Estimated Story Points

Assigned To
Authored By
alexhollender_WMF
Jun 29 2021, 5:49 PM
Referenced Files
F34567298: narrow closed.png
Jul 27 2021, 9:51 PM
F34567292: medium open.png
Jul 27 2021, 9:51 PM
F34567286: medium closed.png
Jul 27 2021, 9:51 PM
F34567294: medium open out.png
Jul 27 2021, 9:51 PM
F34567288: medium closed out.png
Jul 27 2021, 9:51 PM
F34567300: narrow open out.png
Jul 27 2021, 9:51 PM
F34567296: narrow closed out.png
Jul 27 2021, 9:51 PM
F34567284: large open out.png
Jul 27 2021, 9:51 PM

Description

Description

This task is for the various design fixes we need to make to the user links & menu before we deploy.

These notes are based on what I'm seeing on beta on June 29th.

The CSS below is what needs to be changed and/or added:

General fixes

image.png (391×526 px, 34 KB)

// Username & Create account buttons
(this should be identical to an OOUI quiet, frameless button)
font-size: 14px;
font-weight: 700;
padding: 6px 12px;
margin: 0;
border-radius: 2px
:hover: background-color: rgba(0,24,73,0.02745098);
// Menu items
font-size: 14px;
padding: 6px 12px; // Note this is equivalent to a menu item with a 32px height (20px icon + 6px top padding + 6px bottom padding )
:hover: background-color: #EAECF0;
:last-child: border-top: 1px solid #c8ccd1;
// Menu
border-radius: 2px;
box-shadow: 0 2px 2px 0 rgb(0 0 0 / 25%);
Logged-out
  • all of the above changes should be applied (Create account button should be styled identically to Username above)
  • remove the 12px of padding on the left of the user menu button
    Screen Shot 2021-06-29 at 3.51.14 PM.png (147×595 px, 28 KB)
  • remove icons from Talk & Contributions menu items (reminder: logged-out only)
  • Pages for logged out editors (learn more):
    • font-size: 14px; color: #54595D; padding: 8px ​12px 6px 12px
    • remove the margin on the inner <p>
    • remove : from the end of the string
Logged in
  • There should be padding between the notification icon and the username
Responsive / wrapping elements

Currently the username, bell icon, and inbox icon are wrapping at smaller screen widths. This should not be happening. See T285786#7212904.

Notes

  • check logged-out
  • check logged-in
  • checked logged-in w/ 'you have a new talk page message' notice

Details

Other Assignee
nray
Related Changes in Gerrit:

Event Timeline

This all looks very straightforward as minor style tweaks. Unless I'm missing something, we should be able to knock these fixes out without much ado.

FYI @Jdrewniak there's a fair bit of overlap between this task and T285960, T285960 that will result in changes to CSS and HTML so it might be worth holding off on your changes or rebasing on top of that one to reduce back and forth.

Change 702696 had a related patch set uploaded (by Jdrewniak; author: Jdrewniak):

[mediawiki/skins/Vector@master] [WIP] User menu design tweaks

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

@Jdlrobson , there's overlap with T284243 here too, but I'll eventually rebase my patch on top of those changes, since this task is meant as a general design overview of the menu.

Test wiki created on Patch Demo by JDrewniak (WMF) using patch(es) linked to this task:

https://patchdemo.wmflabs.org/wikis/b87df0f2cc/w/

Test wiki on Patch Demo by JDrewniak (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/b87df0f2cc/w/

Test wiki created on Patch Demo by JDrewniak (WMF) using patch(es) linked to this task:

https://patchdemo.wmflabs.org/wikis/83b17206e1/w/

@Jdrewniak just noticing that the username, notification icon, and inbox icon are wrapping when the screen width gets smaller — this shouldn't be happening:

In T285786#7212904, @alexhollender wrote:

@Jdrewniak just noticing that the username, notification icon, and inbox icon are wrapping when the screen width gets smaller — this shouldn't be happening:

This was noted in our code review and standup. @bwang is looking into this.

@alexhollender - not sure if this is already a part of this task, but I'm also noticing overlaps when user has alerts/notices

Screen Shot 2021-07-15 at 9.19.48 AM.png (334×1 px, 38 KB)

@alexhollender - not sure if this is already a part of this task, but I'm also noticing overlaps when user has alerts/notices

Screen Shot 2021-07-15 at 9.19.48 AM.png (334×1 px, 38 KB)

That's T285259

@Jdlrobson @nray @ovasileva @Volker_E responsive state stuff (just putting it here here for now)

This is based on the three main desktop breakpoints: (1) above 1000px, (2) 999px–721px, (3) below 700px.
This is an ideal situation where we independently manage the elements based on logged-in/logged-out, and whether or not the language switcher is in the site header (e.g. Wikidata, Commons):

Wikipedia (logged-in)Wikipedia (logged-out)Wikidata (logged-in)Changes for all
above 1000px
1300px
image.png (370×1 px, 38 KB)
image.png (370×1 px, 40 KB)
image.png (370×1 px, 33 KB)
999-721px
950px
image.png (370×950 px, 30 KB)
image.png (370×950 px, 29 KB)
image.png (370×950 px, 28 KB)
*search collapses
drop logo icon, username/create account collapses into menu
721px
image.png (370×721 px, 28 KB)
image.png (370×721 px, 28 KB)
image.png (370×721 px, 28 KB)
no change
below 720px
500px
image.png (370×500 px, 23 KB)
*search collapses
image.png (370×500 px, 22 KB)
*search collapses
image.png (370×500 px, 23 KB)
*search and languages button drop labels
reduce page padding

@Jdlrobson you mentioned limiting complexity here by having a consistent approach across projects & states. In that case we'd default to the needs of Wikidata (logged-in) as that's has the most elements in the header. However the downside of that would be that for a logged-out person on Wikipedia (the large majority), at 1000px or lower they would see:

image.png (370×950 px, 26 KB)

basically we're taking away functionality due to space constraints on Wikidata, even though in the specific context of logged out on Wikipedia we still have the space for it.

In T285786#7222574, @alexhollender wrote:

@Jdlrobson @nray @ovasileva @Volker_E responsive state stuff (just putting it here here for now)

This is based on the three main desktop breakpoints: (1) above 1000px, (2) 999px–721px, (3) below 700px.
This is an ideal situation where we independently manage the elements based on logged-in/logged-out, and whether or not the language switcher is in the site header (e.g. Wikidata, Commons):

Wikipedia (logged-in)Wikipedia (logged-out)Wikidata (logged-in)Changes for all
above 1000px
1300px
image.png (370×1 px, 38 KB)
image.png (370×1 px, 40 KB)
image.png (370×1 px, 33 KB)
999-721px
950px
image.png (370×950 px, 30 KB)
image.png (370×950 px, 29 KB)
image.png (370×950 px, 28 KB)
*search collapses
drop logo icon, username/create account collapses into menu
721px
image.png (370×721 px, 28 KB)
image.png (370×721 px, 28 KB)
image.png (370×721 px, 28 KB)
no change
below 720px
500px
image.png (370×500 px, 23 KB)
*search collapses
image.png (370×500 px, 22 KB)
*search collapses
image.png (370×500 px, 23 KB)
*search and languages button drop labels
reduce page padding

@Jdlrobson you mentioned limiting complexity here by having a consistent approach across projects & states. In that case we'd default to the needs of Wikidata (logged-in) as that's has the most elements in the header. However the downside of that would be that for a logged-out person on Wikipedia (the large majority), at 1000px or lower they would see:

image.png (370×950 px, 26 KB)

basically we're taking away functionality due to space constraints on Wikidata, even though in the specific context of logged out on Wikipedia we still have the space for it.

Discussed this with @alexhollender and this will not be a blocker for deployment. Next steps:

  • monitor if any search decreases are observed based on the search collapsing at lower resolutions
  • set up a spike to further discuss and identify behavior at lower resolutions

@alexhollender Can you please check https://patchdemo.wmflabs.org/wikis/608ecb4afa/wiki/Main_Page, and let me know what revisions I need to make. Please note that I am aware of deviations from the spec on the following items and wasn't sure how important they were to you:

  • The spec mentions that the "Create account" and username should have 6px of vertical padding. It is currently at 5px of vertical padding which comes directly from the .mw-ui-button class in mediawiki ui. Please let me know if that's a problem.
  • The border separating the menu items is the color: #a2a9b1 instead of the desired #c8ccd1 because it uses the @border-color-base variable from mediawiki ui. Again, please let me know if this is a problem.

Thank you

@nray wow, looking great! few notes:

  1. (for widths above 720px) remove 12px of margin on the left of button (seems like it's necessary again once the Create account button collapses into the menu at 720px)
    image.png (177×510 px, 31 KB)

  1. remove padding around (learn more) link
    image.png (198×238 px, 11 KB)

  1. when create account is in the menu it should be the top item in the menu
    image.png (270×269 px, 17 KB)

  1. the icon button is not the correct size, but maybe that's being fixed in T285259 / T191021. The padding looks right but the icon itself is not the standard 20x20px (total size with padding should be 44x44px)
    Screen Shot 2021-07-22 at 7.18.42 PM.png (128×109 px, 4 KB)

Test wiki created on Patch Demo by NRay (WMF) using patch(es) linked to this task:

https://patchdemo.wmflabs.org/wikis/a424a33410/w/

Test wiki on Patch Demo by NRay (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/a424a33410/w/

Test wiki created on Patch Demo by NRay (WMF) using patch(es) linked to this task:

https://patchdemo.wmflabs.org/wikis/e097002f78/w/

@alexhollender Revisions done. Please check latest at https://patchdemo.wmflabs.org/wikis/e097002f78/w/

If everything is okay, please put ticket back in doing column so I can do some final code cleanup.

Thank you!

@nray all issues are fixed. only thing I see is we lost the blue link color on "learn more"

Screen Shot 2021-07-24 at 10.27.21 AM.png (446×620 px, 40 KB)

Jdlrobson updated Other Assignee, added: nray.

Back to you Alex for another design review.. this time on the beta cluster: https://en.wikipedia.beta.wmflabs.org/

Please move to needs more work or sign off depending on the outcome.

Change 702696 merged by jenkins-bot:

[mediawiki/skins/Vector@master] User menu design tweaks

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

@nray it looks sooooo go💜💙💖💞💓💘💝💚💛❤️🌸💙🌞❤️🧡oood ❣️❣️

logged-outlogged-in
wide (over 1000px)
menu closed
large closed out.png (308×1 px, 50 KB)
large closed.png (307×1 px, 53 KB)
menu open
large open out.png (308×1 px, 58 KB)
large open.png (308×1 px, 63 KB)
medium (1000–720px)
menu closed
medium closed out.png (309×923 px, 45 KB)
medium closed.png (308×921 px, 48 KB)
menu open
medium open out.png (308×923 px, 50 KB)
medium open.png (308×924 px, 54 KB)
narrow (below 720px)
menu closed
narrow closed out.png (345×687 px, 39 KB)
narrow closed.png (345×686 px, 42 KB)
menu open
narrow open out.png (346×686 px, 46 KB)
narrow closed.png (345×686 px, 42 KB)

And...done! Thanks @nray and @alexhollender!

Test wiki on Patch Demo by JDrewniak (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/83b17206e1/w/

Test wiki on Patch demo by NRay (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/e097002f78/w/