Repository navigation
Reiterate that 4.1.2 is scoped to states/properties *that can be set by the user* - #5399
patrickhlauke wants to merge 3 commits into
Conversation
✅ Deploy Preview for wcag2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
there is an argument to be made for invalid (and perhaps readonly) being included in the list of states/properties #5395 (comment) as it's a "secondary effect" of the user interacting with the UIC...not something they actively set themselves. maybe name-check even some other properties/relationships mentioned here https://html5accessibility.com/stuff/2025/07/08/short-note-wcag-aria-state-of-confusion/ (but with the caveat that that says invalid IS covered) potentially hint at the fact that these other things MAY be covered by other SCs like 1.3.1 Info and Relationships if one can argue that they're visually presented somehow but in general...we're trying to move away from the tendency some auditors have traditionally had of shoving anything related to |
| <p>While user interface components may have various states and properties, this criterion only covers | ||
| ones that <q>can be set by the user</q>, or that are a direct result of user interaction.</p> | ||
| <p>For instance, whether a component is focused, or whether data entered in an form field is invalid.</p> | ||
| <p>States/properties such as those indicating that a component is <code>required</code> or <code>disabled</code> |
There was a problem hiding this comment.
per my comment in the originating issue, i don't agree with disabled here.
the rationale that it's only set by the user as a secondary effect is a bit of hair splitting that tries to draw lines the normative text doesn't. If I activate a button and it becomes disabled upon activation, then I (the user) did that.
Totally agree with required - users don't toggle that. Their action/inaction with the required field will result in it being flagged as invalid though.
Now, if the group decides that disabled or the invalid state would be better called out under 1.3.1 - then, i'll agree to disagree. But, I'd want it explicitly mentioned here that "states that are a secondary effect due to a user action are not covered under 4.1.2, but would instead be under 1.3.1 because [ insert logical reason here ]"
There was a problem hiding this comment.
the language used in the normative text of "programmatically set" implies to me that we're talking about read/write properties/states. that if a user can toggle those/change those directly, so can software/AT. it doesn't say "these states can be programmatically determined" (which to me means it's about reading the state), it says "can be programmatically set" (read/write). to me , there's a difference. but we clearly disagree.
we could suggest a normative change to the SC and make it say that the properties/states can also be programmatically determined, but that would then mean that anything that doesn't have those programmatic states/properties (and instead relies on context, text, something else instead) to convey the same information to the user would fail. the "unless you use all the aria-* things, you fail 4.1.2" approach. and beyond that, if you don't programmatically mark things in native html in these ways, you fail 4.1.2 as well.
i don't think there's an easy "we just mean it for this, and only in these cases where it's not already conveyed in some other way" phrasing out of this.
There was a problem hiding this comment.
i don't think there's an easy "we just mean it for this, and only in these cases where it's not already conveyed in some other way" phrasing out of this.
or...having slept on this... maybe that's exactly the kind of wording that can be added, a la (to paraphrase) "you need to convey all appropriate properties/states programmatically, unless that's already done in some other accessible way (hint to 1.3.1 Info and Relationships for instance, where it allows "in text")"
There was a problem hiding this comment.
"states that are a secondary effect due to a user action are not covered under 4.1.2, but would instead be under 1.3.1 because [ insert logical reason here ]"
or they may not be covered by WCAG at all, i.e. you might not fail anything. and the "logical reason" would have been the "because there's a risk that this would otherwise mandate all sorts of properties/states to be programmatically conveyed where currently that's not the case"
and even for those that ARE covered by WCAG, the logical reason would be that 1.3.1 allows "available in text" where 4.1.2 doesn't.
|
|
||
| <div class="note"> | ||
| <p>While user interface components may have various states and properties, this criterion only covers | ||
| ones that <q>can be set by the user</q>, or that are a direct result of user interaction.</p> |
There was a problem hiding this comment.
| ones that <q>can be set by the user</q>, or that are a direct result of user interaction.</p> | |
| states and properties that <q>can be set by the user</q>, or that are a direct result of user interaction.</p> |
There was a problem hiding this comment.
“ones” reads as referring to the UIC so I suggest clarifying.
| <div class="note"> | ||
| <p>While user interface components may have various states and properties, this criterion only covers | ||
| ones that <q>can be set by the user</q>, or that are a direct result of user interaction.</p> | ||
| <p>For instance, whether a component is focused, or whether data entered in an form field is invalid.</p> |
There was a problem hiding this comment.
| <p>For instance, whether a component is focused, or whether data entered in an form field is invalid.</p> | |
| <p>For instance, whether a component is focused, or whether data entered in an form field is invalid are not properties that can be set by the user.</p> |
There was a problem hiding this comment.
Sentence somewhat incomplete. Optionally, combine with “disabled” example of next sentence?
This adds a note to 4.1.2 reiterating that only states and properties that can be set by the user are covered by the SC.
Closes #5395
Preview: https://deploy-preview-5399--wcag2.netlify.app/understanding/name-role-value
Diff: https://services.w3.org/htmldiff?doc1=https%3A%2F%2Fwww.w3.org%2FWAI%2FWCAG22%2FUnderstanding%2Fname-role-value.html&doc2=https%3A%2F%2Fdeploy-preview-5399--wcag2.netlify.app%2Funderstanding%2Fname-role-value