Page MenuHomePhabricator

Signup form hides fields and field names in mobile view
Closed, ResolvedPublicBUG REPORT

Description

The signup form (Special:CreateAccount) uses responsive CSS to simplify the form on small screens. This is tailored to the configuration used on standard Wikimedia wikis during normal signup and breaks otherwise:


Quoting from T335516: Do not hide labels in mobile Log in / Sign up forms:

Hiding form labels and leaving placeholders is a bad accessibility practice: placeholders can be hard to remember, and people can fill out information in steps, especially on registration forms, and in case where they have filled in something already, they cannot see what field it was in a form that does not have labels at the top of the form. Modern Codex inputs do not feature this ‘feature’, and neither did OOUI inputs, and this seems like a holdover from a MediaWiki UI era that can be safely removed without much problem.

See also T51018: Remove placeholder text or labels from login form (Special:UserLogin) inputs:

On mobile (with smartphone media query, not tablet) the placeholders take a more important role, as they are the only field indicators.
That's questionable on it's own, as the information, what field the user is currently typing in, is disappearing after the first character is typed.

Event Timeline

Jdlrobson subscribed.

I am not aware of any good reason why we hide these. Probably just needs design and product focus.

The Wikitech shell account name field probably comes from MediaWiki-extensions-OpenStackManager. The other two are core fields.

Change 701626 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/OpenStackManager@master] Add placeholder for shell username field

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

Change 701626 merged by jenkins-bot:

[mediawiki/extensions/OpenStackManager@master] Add placeholder for shell username field

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

Quoting myself from T335516: Do not hide labels in mobile Log in / Sign up forms:

Hiding form labels and leaving placeholders is a bad accessibility practice: placeholders can be hard to remember, and people can fill out information in steps, especially on registration forms, and in case where they have filled in something already, they cannot see what field it was in a form that does not have labels at the top of the form. Modern Codex inputs do not feature this ‘feature’, and neither did OOUI inputs, and this seems like a holdover from a MediaWiki UI era that can be safely removed without much problem.

Change 933628 had a related patch set uploaded (by Saint Johann; author: Saint Johann):

[mediawiki/skins/MinervaNeue@master] Do not hide placeholders in UserLogin form

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

‘Real name’ field is displayed in patchdemo wiki now, but Wikimedia websites I have tested this CSS with do not have that field since it is disabled via https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php

$wgHiddenPrefs[] = 'realname';

Should this misalignment also be fixed? (Present before the patch just so I’m clear.)

image.png (256×1 px, 24 KB)

Change 933621 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Login page: Show input labels on mobile devices, use notice box

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

Hey design systems team this came up as part of switching the login/signup forms to Codex: T182050 - is there any reason to keep hiding field names in the mobile view like so:

Screenshot 2023-06-27 at 4.55.02 PM.png (525×484 px, 39 KB)

Proposal is something like:

Screenshot 2023-06-27 at 4.55.30 PM.png (647×492 px, 48 KB)

This is an accessibility problem, so please do not remove the relevant tag.

For the reference, my Gerrit patch currently would do this (which seems like an acceptable and accessible way to fix the problem while Codex conversion is underway):

image.png (900×525 px, 41 KB)

I don't think this is a duplicate of T335516: Do not hide labels in mobile Log in / Sign up forms. This task is about some fields not appearing at all on Minerva, or appearing as an empty inputbox without any indication of what it is for.

Why is this a parent task to T182050: Remove all mediawiki.ui components and libraries in favor of Codex? That feels like a pretty distinct effort as opposed to a quick change that can be done to address the form field labels not showing.

Hey design systems team this came up as part of switching the login/signup forms to Codex: T182050 - is there any reason to keep hiding field names in the mobile view like so:

Screenshot 2023-06-27 at 4.55.02 PM.png (525×484 px, 39 KB)

No I don't think so, but I'll let @bmartinezcalvo weigh in here.

For the reference, my Gerrit patch currently would do this (which seems like an acceptable and accessible way to fix the problem while Codex conversion is underway):

image.png (900×525 px, 41 KB)

This looks better to me.

All that being said, I agree with @Tgr that the task description makes this out to be about the sign up form, not the login form...

Both (Special:UserLogin/Special:CreateAccount) are using the same components/styles JFYI. While you can theoretically target one but not the other, that doesn’t seem like the best thing to do.

Both (Special:UserLogin/Special:CreateAccount) are using the same components/styles JFYI. While you can theoretically target one but not the other, that doesn’t seem like the best thing to do.

Oh I see, sorry, I didn't realize the patch addressed both.

Why is this a parent task to T182050: Remove all mediawiki.ui components and libraries in favor of Codex? That feels like a pretty distinct effort as opposed to a quick change that can be done to address the form field labels not showing.

Hey design systems team this came up as part of switching the login/signup forms to Codex: T182050 - is there any reason to keep hiding field names in the mobile view like so:

Screenshot 2023-06-27 at 4.55.02 PM.png (525×484 px, 39 KB)

No I don't think so, but I'll let @bmartinezcalvo weigh in here.

I'm not sure why labels were hidden in the mobile login (I guess to save vertical space), but I agree for scannability and accessibility reasons it's better to keep them visible.

For the reference, my Gerrit patch currently would do this (which seems like an acceptable and accessible way to fix the problem while Codex conversion is underway):

image.png (900×525 px, 41 KB)

This looks better to me.

All that being said, I agree with @Tgr that the task description makes this out to be about the sign up form, not the login form...

Yes, it looks better with the labels visible. But keep in mind that the new Codex Field component uses the label with Bold style as default. This decision was taken to make the form items more scannable in long forms.

I can add bold to mobile version if needed in my patch, but keep in mind that there is a separate Codex conversion patch in https://gerrit.wikimedia.org/r/c/mediawiki/core/ /919361/ so maybe it is best to do those changes there instead and this can be just about showing the labels after so many years of hiding them.

I can add bold to mobile version if needed in my patch, but keep in mind that there is a separate Codex conversion patch in https://gerrit.wikimedia.org/r/c/mediawiki/core/ /919361/ so maybe it is best to do those changes there instead and this can be just about showing the labels after so many years of hiding them.

I agree with this. If the plan is to move to Codex in a separate patch, I wouldn't worry too much about the visual consistency with your patch.

Change 933628 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Do not hide placeholders in UserLogin form in Minerva skin

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

While above patch is fixed, this issue is not fixed. The patch merged means all the code now lives inside MediaWiki core.

The patch https://gerrit.wikimedia.org/r/c/933621 still needs to be reviewed to address this issue, once we've agreed it's an issue.

In case it was missed:

I'm not sure why labels were hidden in the mobile login (I guess to save vertical space), but I agree for scannability and accessibility reasons it's better to keep them visible.

(or is someone else needed for this?)

(or is someone else needed for this?)

My understanding is this task @CCiufo-WMF and Design-System-Team will pick this up when they have time to schedule a code review (right now they are quite busy with other initiatives and are missing a few team members due to vacations).

Change 933621 abandoned by Jdlrobson:

[mediawiki/core@master] Login page: Show input labels on mobile devices

Reason:

Not working on this, but feel free to restore it when you've had a chance to discuss this and schedule a code review.

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

(Is there anything preventing the other patch from being merged if this patch was abandoned? I don’t see any objections from Design Systems team on this.)

Can you clarify what is the "other" patch? I don't see any other patches waiting for review. (This task for a bit messed up, maybe I shouldn't have merged them.)

Well, it's merged :) Was it reverted or something?

Well, it's merged :) Was it reverted or something?

Kind of. On 10 July 2023, the Minerva patch merged which removes the display: none; statements that hid the input labels on mobile viewports:

Change 933628 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Do not hide placeholders in UserLogin form in Minerva skin

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

But, 48 hours earlier on 7 July 2023, this patch also merged, which re-introduced the same CSS in MediaWiki core under an effectively mobile-specific @media rule.

Change 919361 merged by jenkins-bot:

[mediawiki/core@master] Login page: Use Codex CSS components

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


The pending patch is indeed https://gerrit.wikimedia.org/r/c/mediawiki/core/ /933621, however this was abandoned on 28 July 2023 stating:

Change 933621 abandoned:

Reason:

Not working on this, but feel free to restore it when you've had a chance to discuss this and schedule a code review.

As I understand it, both @CCiufo-WMF and @bmartinezcalvo from the Design team have indicated a month ago that these are fine to re-instate:

[…] is there any reason to keep hiding field names in the mobile view like so: F37121481 […]

No I don't think so, but I'll let @bmartinezcalvo weigh in here.

I'm not sure why labels were hidden in the mobile login (I guess to save vertical space), but I agree for scannability and accessibility reasons it's better to keep them visible.

[…] This looks better to me. […]

Yes, it looks better with the labels visible. But keep in mind that the new Codex Field component uses the label with Bold style as default. This decision was taken to make the form items more scannable in long forms.

Is anything else needed for a small interative improvement to make the labels visible again?

Change 933621 restored by Krinkle:

[mediawiki/core@master] Login page: Show input labels on mobile devices

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

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

https://patchdemo.wmflabs.org/wikis/28e7e00f50/w/

Comparison:

BeforeAfter
Vector, wide
Screenshot 2023-08-16 at 04.21.54.png (1×1 px, 624 KB)
Screenshot 2023-08-16 at 04.21.59.png (1×1 px, 629 KB)
Minverva, wide
Screenshot 2023-08-16 at 04.22.04.png (1×1 px, 543 KB)
Screenshot 2023-08-16 at 04.22.08.png (1×1 px, 545 KB)

Identical.

Vector, narrow
Screenshot 2023-08-16 at 04.23.39.png (1×1 px, 586 KB)
Screenshot 2023-08-16 at 04.23.48.png (1×1 px, 606 KB)
Minerva, narrow
Screenshot 2023-08-16 at 04.26.10.png (1×1 px, 498 KB)
Screenshot 2023-08-16 at 04.26.13.png (1×1 px, 496 KB)
  • Labels now visible.
  • "Keep me logged in" option no longer broken.
  • Input field no longer has a custom height or lack of spacing.
  • Unchanged: Input field keeps the fluid width feature of matching the width of narrow screens.

I think one concern here was the sign-up page on very small viewports like original iPhone.
The primary button disappears wide below the fold. This should probably be revisited now how much of an impact or any impact at all the visible labels would make on sign-up numbers.
Also we should revisit the placeholders on at least the second group of inputs, they are worthless and distracting for the users in my opinion with labels shown.

image.png (1×682 px, 160 KB)

(or is someone else needed for this?)

My understanding is this task @CCiufo-WMF and Design-System-Team will pick this up when they have time to schedule a code review (right now they are quite busy with other initiatives and are missing a few team members due to vacations).

I'm sorry, I missed this as a specific ask for code review.

(Is there anything preventing the other patch from being merged if this patch was abandoned? I don’t see any objections from Design Systems team on this.)

Yes, we agree the design changes here are a good thing. Showing the input labels aligns with our guidelines and best practices from accessibility and design consistency perspectives.

I think one concern here was the sign-up page on very small viewports like original iPhone.
The primary button disappears wide below the fold. This should probably be revisited now how much of an impact or any impact at all the visible labels would make on sign-up numbers.

I think this is a question for @ovasileva and/or @KStoller-WMF. Design-System-Team can review the changes from a design (and best use of Codex) perspective, but I think whoever owns the product implications of the change should be responsible for merging.

Also we should revisit the placeholders on at least the second group of inputs, they are worthless and distracting for the users in my opinion with labels shown.

See T51018: Remove placeholder text or labels from login form (Special:UserLogin) inputs

Change 933621 merged by jenkins-bot:

[mediawiki/core@master] Login page: Show input labels on mobile devices

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

I don't think anyone owns the login/signup pages as a product, so I decided to be bold and merge the change. It will be deployed to Wikimedia wikis next week, per the usual schedule. If there's any reason I shouldn't have done it, feel free to revert.

I was a little concerned this got merged without any follow up given the concern raised in T285398#9095172 and @CCiufo-WMF 's comment in T285398#9097389 so I took a look at the data. While I'm sympathetic with the idea of being bold, particularly in the case of a lack of ownership, I do think as staff members we have a duty to lead by example and check we are not impacting our key metrics.

This looks like it was deployed in wmf24. Using the query SELECT month, day, count(*) from event.serversideaccountcreation where year = 2023 AND ( month = 9 or month = 8 ) AND wiki = 'enwiki' AND event.displayMobile = true group by month, day on https://superset.wikimedia.org/superset/sqllab/ I have confirmed that there was no abnormal change in account sign ups.

Screenshot 2023-09-06 at 1.18.35 PM.png (397×626 px, 24 KB)

@Jdlrobson you have to fix access permissions for the file

@stjn that bug is still not fixed ?!😭 (done)

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

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