-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification on 3.3.2: Labels or Instructions with regard to required fields and Sufficient Techniques #2357
Comments
some related discussion here #1698 |
Hello Joe Watkins. Thank you for the question and your interest with promoting accessibility!
That is correct, since there is no SC which says that. In general, poor UX which effects everyone (and not only PWD), won't be reflected in the normative phrasing of Success Criteria. It is also the case that the AG WG is reluctant to includes examples in Understanding (et al.) that are just-barely-passing-but-terrible. |
My understanding of WCAG is that this is not correct. Required fields must be marked (according to 3.3.2). Regardless, labels must be meaningful. |
@JAWS-test it is contextual to an extent. If you have a login form where of course both username and password are required, do you fail a page if it doesn't explicitly say "Username (Required)" / "Password (Required)"? |
3.2.2 reads:
Nothing in the above about the field being required or not. The base requirement, the SC text, is very minimal. It applies when there is user input. |
it's the unfortunate use of "requires" in that wording, when really it's more about "accepts", "expects", "allows" (not the "required" in the sense that it is a "required field" in the validation sense) |
@JAWS-test I don't agree. If I have a form which provides no visible indication and no programmatic indication that five of the five fields are required, when I submit the form without completing two fields, I'll get a notification that I'm missing some information that is required. Lousy UI, but not a failure. |
I think that is debatable. There is no Failure technique that specifically calls that out -- which is the ultimate way of proving that something is a failure; however, there are a few techniques (sufficient and failure) that directly call out use of required, from which we can make a case:
I find it most useful to look at the tests for these techniques
I think it becomes pretty clear from looking at those Understanding documents and the tests in particular, that required fields form part of the labels or instructions for a form, and that visual information about this relationship must be programmatically determinable. So there are a few different SCs which can be brought into play to make a case. The ARIA technique I cited does this. Note that they do have it as "advisory" for 1.3.1, not sufficient.
So, I think there could definitely be cases where I might try to make a case that something is failing one of those 2 SCs (for example, they put the asterisk outside the label programmatically, but it is there visually, so the AT never hears it announced while working in forms mode) and some where I'd think it doesn't. Note also that the unfortunate use of the word "required" in the normative text of Labels or Instructions makes this even harder to tell, since you have to go back and consider the intent of the crafters of the SC about what the heck they meant when they used that word!
Getting back to the original question, the 2 general techniques combined are actually listed as sufficient for Labels or Instructions, but I think you're skating on thin ice with Info and Relationships on most forms (which usually have some visual indicator of required fields). You meet it in your scenario, though.
|
@mbgower Techniques are not tightly scoped to only include what the required by the SC. For H90, yes, you can meet 3.3.2 by including information about whether the fields are required in the label or legend, but that is greater than the minimum requirement for 3.3.2. For the 1.4.1 technique, it is required to indicate the required fields because it is shown in another way (color), and for ARIA2 again the presentation shows that the field is required so you need to match that for other users. |
Right, and my long-winded explanation gets to that. The only reason 1.3.1 doesn't factor in in this scenario is because the issue commenter says:
So everyone gets the same crappy experience. |
"So everyone gets the same crappy experience." is about the same as my "Lousy UI, but not a failure" :) |
I don't see it that way. A bad UI means a significant extra effort for disabled people. Otherwise, there would be no need for the criteria in chapter 3.3. All SC in 3.3 are about avoiding bad UI: "Help users avoid and correct mistakes." In the Understanding we can read:
and
Of course I agree with @patrickhlauke that there are cases where it is obvious from the context that all fields are required or optional
In most cases, however, it is not clear what are required fields, so my understanding is that they must always be marked |
In the established WCAG test procedures, 3.3.2 also explicitly checks for the marking of required fields, e.g. https://webtest.bitv-test.de/index.php?a=di&iid=291&s=n.
|
@JAWS-test nothing wrong with test procedures and auditors going above and beyond the bare-bones minimum of the literal SC text. Ping to my colleague @kengdoj who might say if TT or baseline has a similar test step. From the .de TLD could it be the case that your reference is a translation error? As @patrickhlauke notes above, it is problematic that |
@bruce-usab Whether it is a translation error, @detlevhfischer can answer. But I do not believe that it is one |
@JAWS-test BITV-Test does not generally mandate that required fields are marked (note the use of 'should'). We are also becoming less strict in mandating an explanation of asterisk at the start of the form if used to mark fields visually as required - see BIK-BITV/BIK-Web-Test#263 |
I would also note that |
@bruce-usab |
@cscheffauer -- since 3.3.2 reads "labels or instructions" -- the verbatim wording allows flexibility. 3.3.2 does not dictate that you add a visible label where it would be superfluous (or confusing) for everyone (including users of assistive technology), In general, if a developer feels forced to do something weird in terms of the common/usual UI/UX -- because of how they are reading a particular SC -- my experience is that the developer is reading something into the SC that is not literally there. You note that the context is a non-web application, and that usually means there are platform-specific resources and conventions. Nowadays, it is not uncommon for platforms to be widely regarded as being accessible, and that the platform owner has developer-oriented documentation on accessibility APIs and features. |
Hi folks! Can the Working Group comment on the following scenario with regard to 3.3.2: Labels or Instructions and required fields in a web form?
Scenario: Imagine a web form where fields that own descriptive labels are required for entry but they are not marked visually nor programmatically as required. Upon submission of the form, error validation kicks in and text appears indicating the field/s is required. The form does not have any instructional indicating that there are required fields.
It's my understanding that to satisfy
3.3.2: Labels or Instructions
you can use G131 Providing descriptive labels AND G83 Providing text descriptions to identify required fields that were not completed.Is my interpretation correct that WCAG does not require authors to indicate that fields are required as part of the label or accessible description as long as the label is descriptive (G131) and error validation using text descriptions is present upon form submission (G83)?
ps. I know this isn't good UX or advised - just strictly parsing WCAG with respect to satisfying the Success Criterion.
The text was updated successfully, but these errors were encountered: