wai-tutorials icon indicating copy to clipboard operation
wai-tutorials copied to clipboard

Form fields for Mobile

Open brewerj opened this issue 7 years ago • 5 comments

Proposed new subhead ("Form field controls") to improve mobile coverage for responsive design of forms.

If confirmed, add note "Developed with support from WCAG TA Project"

Could also add in resource section: https://www.w3.org/TR/mobile-accessibility-mapping/#set-the-virtual-keyboard-to-the-type-of-data-entry-required

brewerj avatar Jun 23 '17 03:06 brewerj

I wonder if that should go to the labels page (as not everything has to do with labels).

yatil avatar Jun 23 '17 07:06 yatil

I agree with suggestions from @yatil for HTML5 form field use and virtual keyboard examples.

For these two sentences:

On smaller screens, field labels may drop completely. Ensure that fields have text descriptions.

We may need to provide more context about the design choice of hiding ("dropping") the labels on small screens and the responsibility to ensure the form remains usable and accessible with examples of 1) how to reflow labels visually to be above their fields, or 2) visually hide the labels and use other methods to describe the fields.

Putting more detailed label guidance for responsive/mobile design on a labels page may make more sense than adding it to this page, too.

iamjolly avatar Jun 27 '17 07:06 iamjolly

Another note: In the WCAG 2.0 definition of labels, they are presented to all users.

label text or other component with a text alternative that is presented to a user to identify a component within Web content Note 1: A label is presented to all users whereas the name may be hidden and only exposed by assistive technology. In many (but not all) cases the name and the label are the same. Note 2: The term label is not limited to the label element in HTML.

I don’t know if we make that distinction throughout the tutorial, but when we talk about “dropping labels”, we probably want to be precise.

yatil avatar Jun 27 '17 08:06 yatil

Agree that additional clarification is needed.

nrhsinclair avatar Jul 05 '17 16:07 nrhsinclair

I’ll take a pass to use this great information and make a proposal (in the new design).

yatil avatar Sep 09 '19 11:09 yatil

Pulling together the suggested updates: "When HTML5 form fields are used, a virtual keyboard that allows easier input of the data is shown automatically: For example, a number field shows a numeric keyboard, a date field a native date picker. While some designs want visual field labels to be dropped, users prefer visible labels as they make the form easier to understand.”

I am happy with this and can make a new PR unless there are other comments.

brianelton avatar May 09 '23 16:05 brianelton

+1 to:

"When HTML5 form fields are used, a virtual keyboard that allows easier input of the data is shown automatically: For example, a number field shows a numeric keyboard, a date field a native date picker. While some designs want visual field labels to be dropped, users prefer visible labels as they make the form easier to understand.”

or with just a bit of wordsmithing :

"When HTML5 form fields are used, a virtual keyboard appears making it easier to input data. For example, a number field shows a numeric keyboard, a date field a native date picker.

While some designs want visual field labels to be dropped, users prefer visible labels as they make the form easier to understand.”

I'm ok either way.

lakeen avatar May 09 '23 18:05 lakeen

Updates covered in #721. Closing PR.

brianelton avatar May 09 '23 19:05 brianelton