Skip to content

Reiterate that 4.1.2 is scoped to states/properties *that can be set by the user* - #5399

Open
patrickhlauke wants to merge 3 commits into
mainfrom
patrickhlauke-issue5395
Open

patrickhlauke wants to merge 3 commits into
mainfrom
patrickhlauke-issue5395

Conversation

@patrickhlauke

@patrickhlauke patrickhlauke commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

@netlify

netlify Bot commented Oct 11, 2026

Copy link
Copy Markdown

✅ Deploy Preview for wcag2 ready!

Name Link
🔨 Latest commit e843ca7
🔍 Latest deploy log https://app.netlify.com/projects/wcag2/deploys/6acbb322e1c3c90008ef8ca6
😎 Deploy Preview https://deploy-preview-5399--wcag2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@patrickhlauke patrickhlauke moved this from To do to Drafted in WCAG 2.x Oct 11, 2026
@patrickhlauke

patrickhlauke commented Oct 13, 2026 •

Copy link
Copy Markdown
Member Author

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 aria-* attributes into 4.1.2 like a big catch-all bucket

<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>

@scottaohara scottaohara Oct 14, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ]"

@patrickhlauke patrickhlauke Oct 14, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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")"

@patrickhlauke patrickhlauke Oct 15, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sentence somewhat incomplete. Optionally, combine with “disabled” example of next sentence?

@patrickhlauke patrickhlauke moved this from Drafted to In progress in WCAG 2.x Oct 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Reiterate that 4.1.2 is scoped to states/properties *that can be set by the user*

3 participants