You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Success Criterion 4.1.2 - Name, Role, Value - Level A #48
Conceptually, (as seen in the Notes for WCAG2ICT and Understanding in WCAG) 4.1.2 seems to primarily guide customizations and their interactions with (at least some) AT.
In thinking about a mobile context for 4.1.2, I have two questions I hope the group can decide on:
What is the intended coverage for 4.1.2 elements? Ie should it apply to all UI element types? Only input controls? Only interactive components?
WCAG seems a bit circular in reasoning defining "control" and "UI component". there is a use of "including but not limited to..." which makes it hard to pin down whether non-interactive UI elements apply (such as when VoiceOver doesn't include the word, "image", for informational meaningful images that are not other traits, it's very likely custom, but are images even in scope for 4.1.2?)
I'm wondering your thoughts @ALL about explicitly calling out keyboard as an AT for 4.1,2? Full Keyboard access is explicitly an Accessibility feature on iOS though not on Android. One example that is sometimes a 2.1.1 keyboard best practice is when there is focus on a non-interactive item (without screen reader on). It could arguably be a 2.4.3 Focus Order issue, but if it's not "out of order", it seems like unnecessary tab stops are a code issue that likens keyboard to a sort of customization.
@jamieherrera
For you first point, I have always interpreted it as interactive elements. Meaning that a non-interactive image would not be required to have it's role set to image. But I agree that would be very helpful.
I think one of the major differences between Android/iOS and Web is that web uses alt to set a label for images, while Android/iOS use contentDescription / accessibilityLabel; which are the same properties used for setting a name in 4.1.2.
It might help to make the scope of elements broader, but we have to be careful about introducing any edge cases.
For your second point, I agree it would be good to include hardware keyboard in our updated definition of assistive technology. Double check when working on the definition of keyboard interface
<Joe_Humbert> [w3c/matf#48](https://github.com/w3c/matf/issues/48)
<JJ> Fixed link in agenda
Jamie on 4.1.2 - 2 questions: intended coverage - to all UI element types, and how to call out keyboard as an AT for 4.1.2
Jamie How do we interpret the control aspect?
I would say that all UI components regardless of interaction should be identifiable by AT
JJ I've interpreted this in the context of interactive components - the issues are mostly about custom components
julianmka I think there is a world where this primarily applies to custom components, native components usually work but devs do lack a lot of knowledge in this area (e.g. separation of name and state).
GleidsonRamos I agree about custom components, but not always - in X platform there are additional issues because a lot of the time the components that are "standard" are actually already "custom"
<Jamie> +1 to julianmka that even standard user interface components in mobile do include a higher layer of accessibility knowledge than in web so should be mentioned in this SC
For your second point, I agree it would be good to include hardware keyboard in our updated definition of assistive technology
I think the general assumption both in WCAG2ICT and standards like EN 301 549 is that keyboard (without running any AT) is just another input mode that 2.1.1 requires to be supported by software, incl. mobile apps. That Apple added keyboard support belatedly to be activated as an accessibility setting does not seem to force us to classify it as AT? At least on an iPad with Magic Keyboard, shouldn‘t the assumption be that all UIE are keyboard accessible (tab or arrow keys) and would fail 2.1.1. if they aren‘t? I would not mix this up with 4.1.2.
But maybe I‘m all wrong and we need to align more closely with current mobile development constraints…
@detlevhfischer that's essentially what I'm trying to capture is whether as a group we feel that the use case for a physical keyboard in the native mobile space (especially in the Apple context of FKA as an Accessibility feature) merits a deviation from WCAG, as the physical keyboard (and onscreen keyboard in tablets/ touchscreen laptops) is an extension of the interface itself, whereas a physical keyboard for a mobile phone (and tablets, to some extent) is an accessory tool.
as the physical keyboard (and onscreen keyboard in tablets/ touchscreen laptops) is an extension of the interface itself, whereas a physical keyboard for a mobile phone (and tablets, to some extent) is an accessory tool.
As far as the AGWG is concerned, the consensus so far (if I read it correctly) has been to de-emphasize the desktop/mobile distinction, in part because of the growing confluence of both.
If we, as a group, choose a deviation, the question remains whether keyboard accessibility would still be a requirement - so that after activating the Keyboard setting on iOS (I think it is reasonable to expect kb users to know and activate that setting), everything is indeed keyboard-accessible (in some way). If that would be the line we take, it seems there wouldn‘t be a big difference to applying WCAG undeviated?
How would we treat keyboard SCs like 2.1.1 and 2.4.3 in a context where we do embark on a deviation? This is not a rhetorical question. In practical terms it could mean that a less stringent implementation of keyboard focus order would be acceptable (some deviations of order? - A wild mix of tab and arrow keys? Or accepting that for reaching some UIE, kb users would need visual feedback to move arrow keys — provided that in a screenreader + touch mode of use, SR focus does reach everything sequentially)?
JJ: Recapped discussion to date in the issue for 4.1.2: [w3c/matf#48](https://github.com/w3c/matf/issues/48)
<JJ> Keyboard interface definition: [w3c/matf#66](https://github.com/w3c/matf/issues/66)
julianmka: Can we split the keyboard question from this SC?
Jamie: We can return to keyboard as an AT after settling this and other SCs
JJ: I see failures of this SC come up frequently in audits. List items not marked as buttons, buttons without names, etc.
Jamie: WCAG2ICT note 2 acknowledges that there are differences between ATs and accessibility support of different platforms. Do we need to clarify that this SC applies only to custom components, or to standard components as well? (Since many standard components require additional modifiers to be accessible.)
JJ: And what about platform quirks like lists in Android where interactive items are often not marked as buttons and only have the "double-tap to activate" hint
Carolina: Since users often turn off hints, I recommend using the explicit role.
Karla: Want to return to Jamie's question on Github -- this SC is only about interactive elements?
JJ: Definition of UI element in WCAG lists interactive elements but there's also "not limited to" language.
Jamie: Would an image with alt text but not marked up as an image fail this SC?
JJ: It would be better for users if elements have roles that are supported by the OS.
JJ: There are platform limitations, but maybe we're making it too complex if we require certain roles.
Jamie: At work, I've run into questions about whether something would fail if it didn't have a programmatically determinable role, even for non-interactive components.
Jamie: We often conflate `interactive` and `UI` components, but there is a distinction.
Jamie: We need to deviate from the idea that standard UI components meet accessibility criteria.
<julianmka> +1 Jamie
<Karla> + Jamie
<JJ> Julian: Developers should correctly use the available accessibility API's such as setting name, role, value in the right places
JJ: Back to the image with alt text but no role: Maybe that would fail under 1.3.1 because there's presentation information that isn't given to a non-sighted user.
JJ: Based on the +1s, it sounds like we should require developers to enhance standard components with the accessibility API if necessary.
Jamie: Perhaps we add a note to 1.3.1 about including images' role in info
Jamie: Maybe a larger convo with the AGWG since it could affect web
JJ: How would we approach this in our documentation? Would we edit Note 1?
<JJ> julianmka: Notes the importance of keeping name and value separate, especially for TalkBack users on Android because they can choose the order that accessibility properties are announced
<JJ> julianmka: Important to honor user preferences, this can be achieved by using correct semantcs
<JJ> Available accessibility API's related to 4.1.2: https://appt.org/en/guidelines/wcag/success-criterion-4-1-2#solution
Jamie: Are there other programmatic things to consider in native apps that go beyond what's described in WCAG?
<JJ> iOS accessibility traits: https://developer.apple.com/documentation/uikit/uiaccessibilitytraits
<JJ> Jetpack Compose (Android) roles: https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/Role
<JJ> julianmka: Mentions the behavior of accessibility traits on iOS, and where they can go beyond the web
JJ: We can add a note or understanding page about traits/roles in native apps.
<Karla> +1 JJ
<julianmka> +1 JJ
Jamie: In looking at the normative text of 4.1.2, it doesn't seem like there's much difference for native mobile, but more in the Notes.
<julianmka> +1 Jamie
<JJ> +1
<Karla> +1
JJ: Don't need a note about name, but we should add a note about roles and states.
JJ: But what would go in a note vs an Understanding doc?
julianmka: General language clarifying that "role" includes traits in iOS and roles in Android; further info in the Understanding doc
<Carolina> +1
<Jamie> +1
<Karla> +1
<JJ> +1
ACTION: Draft proposed language for a note about roles and states for 4.1.2
Jamie: Note 2 final sentence in WCAG2ICT mentions "list of available actions" which we might need to modify since custom actions are important in native apps.
Jamie: Custom actions are unique to native mobile.
<julianmka> +1
<Karla> +1
<JJ> +1
<Jamie> +1 to possibly adding custom actions
JJ: Our note about roles and states could also call out custom actions
<JJ> julianmka
Julian: Would custom actions fall under 4.1.2 or 1.3.1? I tend to think of it under Info & relationships.
JJ: Both could make sense, but it's important for 4.1.2, thinking of how switch control displays actions differently than screen readers for example.
ACTION: Add note about custom actions to 4.1.2 (and/or 1.3.1?)
ACTION: Draft proposed language for a note about roles and states for 4.1.2
ACTION: Add note about custom actions to 4.1.2 (and/or 1.3.1?)
Having read the article on Android accessibility: Roles and TalkBack by Greame Coleman and raising the issue of conformance assessment in the a11y slack channel > mobile testing, I wonder if our advice can pin down what native elements in iOS / Android come with their baked-in role, whixch ones don't and which ones may be OK without any extra role assigned. The example in Graeme's article is item inside menu and @JJdeGroot commented that it is indeed difficult to add role information here. Are we going to propose such elements can then be treated as exceptions? Would usage info scuh as "double-tap to activate", present when TalkBack is set to high verbositiy, be sufficient? Are there common custom elements for which no suitable role information can be given? I think it would be good to draw up a list of the most common UIE for both platforms and work out what kind of (missing, incorrect) role information would actually constitute a FAIL and what is acceptable (even if not ideal). Testers in my context currently come up with different conformance results, and better guidance is urgently needed.
This also relates to @jamieherrera's issue above regarding roles of non-interactive elements (such as lists, images). I think this is somewhat easier: I would generally argue that there is a trade-off between suppying role information on these: for example, it may be useful to know that a menu implemented as list has 14 entries, but it also increases the verbosity and may be distracting. So I tend to pass cases where from a usage perspective, I am led to believe that there is no real issue when role info is missing.
Hi @detlevhfischer I agree such information would be very helpful, and fitting for our group to determine. But, that would probably be an Understanding document, which is not planned in this phase.
For the SC text, I think that we need to consider adding an exception that covers situations such as Android's menu item that does not have a role by default AND can (easily) be set by the author either.
4.1.2 does not have an exception for controls provided by the user agent or platform software.
Note
This success criterion is primarily for web authors who develop or script their own user interface components. For example, standard HTML controls already meet this success criterion when used according to specification.
On Android and iOS, the standard controls do not always meet this success criterion.
WCAG2ICT modifies the Note above:
This success criterion is primarily for software developers who develop or use custom user interface components. Standard user interface components on mostaccessibility-supported platforms already meet this success criterion when used according to specification.
where "already meet" has been toned down to "most already meet". But what happens to those components that are not part of "most"?
WCAG2ICT adds two more notes:
For conforming to this success criterion, it is usually best practice for software user interfaces to use the accessibility services provided by platform software. These accessibility services enable interoperability between software user interfaces and both assistive technologies and accessibility features of software in standardized ways. Most platform accessibility services go beyond programmatic exposure of name and role, and programmatic setting of states, properties and values (and notification of same), and specify additional information that could be exposed and / or set (for instance, a list of the available actions for a given user interface component, and a means to programmatically execute one of the listed actions).
once again, using "most"
and
For document formats that support interoperability with assistive technology, standard user interface components often meet this success criterion when used according to the general design and accessibility guidance for the document format.
using "often"
I think we should add the exception in the SC text itself. Something like:
4.1.2 Name, Role, Value: For all user interface components (including but not limited to: form elements, links and components generated by scripts), the name and role can be programmatically determined; states, properties, and values that can be set by the user can be programmatically set; and notification of changes to these items is available to user agents, including assistive technologies; except if the user interface component is provided by the user agent or platform software and the aforementioned properties are not modified by the author.
And then we could add a note with some common cases where default user interface components fail 4.1.2? Later we can build that out in an Understanding doc.
Role information on product tiles, naming of buttons
I would like to discuss a very common scenario and raise questions regarding necessary role information and necessary labels.
An e-commerce product tile contains various bits of information on one screen reader focus point (In this order, essentially following visual order): (optionally) bonus amounts available when purchasing it; a thumbnail image (not rendered programmatically because it is redundant to the product description below); the price; the product name; a qualifying product description specifying the amount or other attributes like "frozen"; the equivalent price per kilogram. The next focus point is a button placed on top of the tile: "add product to shopping list".
The tile is interactive and goes to a view showing the individual product enlarged and with scant additional information. The tile has no role info like button, despite being interactive. However, when "speak usage hints" under Accessbility > TalkBack > Verbosity is set, the system generates "doubletap to activate".
From a screen reader usability perspective, grouping the product price name and info in one focus point has the advantage that navigating from product to product is speedier than going through the individual elements individually. Information can be accessed individually when navigating by paragraphs.
The question arises whether the lack of role information on the product tile (e.g. role "button") is a problem here that would be a FAIL of 4.1.2 Name, Role, Value (applied to mobile). The next focusable element after the tile is a button with a clear name ("add to shopping list") and the appropriate role, even though the context (what is the product to be added to the shopping list) is only available on the preceding focus point. Disregarding the navigational context, the button may be considered to fail 2.4.6 Headings and labels (applied to mobile). Adding the product name to the button text, however, would make the output a lot more verbose, so there is a trade-off between sufficient label text disregarding navigational context, and usability considering the common navigational context, where each product description is followed by the same generic button.
My personal view is that in this conventional and repetitive context, the lack of role information on the interactive product tile and the lack of specific name on the following action button are not practical problems. If so, it is unclear how to define any exceptions for 4.1.2 and 2.4.6. The normative text does not seem to afford such exceptions.
@JJdeGroot I realize this is unlikely to go into notes at this point and more likely to inform a future understanding text - but I guess it is a pressing question for many people conducting audits of mobile apps.
Joe_Humbert this has been discussed and has tasks for adding notes on roles and states, custom actions, and standard user interface
Joe_Humbert discussed in March 202
2025
Joe_Humbert read out 4.1.2 SC and for WCAG2ICT there are some notes. first one basically modified it to be less web specific and more software specific. not sure if we need to change that note.
how do we consider on Android the "double tap to activate" in relation to the role?
Joe_Humbert this hint content may pertain to the role, but if the user can turn it off, maybe we need to acknowledge that some of the role may be missing
rachaely my understanding is the hint can be turned off for iOS which is additional descriptive content. my understanding in Android hint is the "double tap to __" announcement not controlled by the user
Jamie when it comes to standard user interface components because for example, a native button may not announce button, but instead "double-tap to activate"
Joe_Humbert verfied that user can turn off the usage hint. Android has both the ability to add a role for some things, but also uses this usage hint for more general active controls
Joe_Humbert what i've seen is that people are meeting the spirit of the success criteria
<Jon_Gibbins> The way I’ve understood Android’s behaviour for buttons is that if the context is clearly navigation, e.g. selecting from a list of actions, the role of ‘button’ is not announced (and I guess is assumed by users). Where buttons exist in a context with mixed roles, “button” roles are announced.
Joe_Humbert problematic parts in the normative text that may need to change is "including but not limited to: form elements, links and components generated by scripts". the different definitions can change how this SC is viewed even if we don't change normative tesxt
Joe_Humbert does anyone have things they'd like to see change with the normative text other than the definitions?
Jamie what catches me off guard with a note referring primarily to how authors create, it's not just the author, it's calling out issues with standard interfaces. the note in WCAG2ICT is a topic we need to firm up our decision that standard user interface are accessibile as is in a native app context. we've discussed this and that it's not the same
as web, and is inconsistent in some spaces. looking at the scope of the SC, this could change that. since we have actions in the queue, if they are unassigned, i am open to taking them but maybe others on the call are too, so we can move forward on this
<Jon_Gibbins> As Jamie says, the role announcement behaviour could be considered expected platform behaviour for users, and out of the control of content authors.
Joe_Humbert WCAG applies to the people building apps, so if they have limited control of what they can change with standard controls. if it is an issues with the base component and the developer hasn't changed it, that is a bug to be filed with the platform Apple or Google
Tanya we have a new setup to discuss with Jan Jaap and probably will propose to group in 2 weeks
Joe_Humbert don't wait for the new process to voluntarily pick up a task
Tanya in audits, we don't always know what was used to build the app. we have one tester who does both iOS and Android who doesn't have a development background. so we should provide methodology that should apply to both regardless of native or cross-platform
<Tim> +1 to what Tanya said
Joe_Humbert i'd love feedback from the group, in later versions of iOS 17 and 18, usage hint is no longer provided for role button
<Joe_Humbert> close the queue
i've noticed this, i couldnt narrow down when the change happened, but i also remember iOS announcing "double-tap to active" more than it does now
<JJ> [w3c/matf#48](https://github.com/w3c/matf/issues/48)
<JJ> https://w3c.github.io/matf/#success-criterion-4-1-2-name-role-value
Personally, I vote for explicitly stating "double tap to activate" is not sufficient for any part of the criteria in this sc
<pauljadam> instead of "components generated by scripts" could be something like "components generated by custom code"
<pauljadam> instead of "This success criterion is primarily for web authors who develop or script their own user interface components" could be "This success criterion is primarily for authors who develop custom user interface components"
<pauljadam> instead of "standard HTML controls" could be "standard native controls"
role should also be platform supported (i.e. you can't just throw your own stuff in there)
<pauljadam> we could have a note that says something like hints do not count as the role
<pauljadam> disabled state is
<pauljadam> required and invalid is under the info and relationships error validation requirements
Well, there is definitely confusion of how you apply name role value to each platform, because the accessibility APIs are different than the web. So you have accessible name, that's pretty easy, like image alt text, name of the control, being an accessibility label. But what is the accessible description? I think there's a lot of confusion around
that. because we have already described by on the web, but then on native we don't really have an equivalent. We have we have hints, accessibility hints. Those can also be turned off, so some people will like them because of that. I think Android is kind of the same way. I don't think they really have a description property. And I mean, I don't
know how totally relevant that is here, but maybe we might want to talk about how you translate name role value o platform or somehow kind of mention those in a generic way without getting code specific
<pauljadam> Oh and sometimes you may want to put things into the Value property like how do you make a custom checkbox
<pauljadam> does the checkbox role go into the value? do you just use a switch role?
<JJ> quintinb: we should not restrict people too much, but not give a free license either to rely on 'double tap to activate' or custom roles
<JJ> quintinb: add recommendation; align with the system where possible
<JamesH> +1 to quintinb
I think we need to be careful about what we say because if we get too tight, you can't set a link role, for example, in Android. The role description can be very useful for that if you get stuff. I don't want to restrict people from doing that, but I also don't want to give a free license to just aid you nothing by relying on Double Tap to activate
and B, they shouldn't just go wild with anything. any description in the end. And I think by saying that the preferred way is to be aligned with the system. Because we're informative anyway, that's probably the strictest we can be.
<pauljadam> the complexities of building a custom control where there is no native platform equivalent. Like there are not radio buttons or checkboxes on native iOS, but Android does have that. And then you have things like custom radio cards, etc.
<pauljadam> custom role on android is different code than on iOS, iOS does not have custom roles
<JamesH> +1 to pauljadam
<JJ> quintinb: for links, Android has multiple layers to go through, probably set somewhere in AccessibilityNodeInfo. Also, roleDescription is heavily abused by React Native
<pauljadam> you do often see testers fail a button that opens a URL and say it must be a link role rather than button role, that's what is always recommended
I know it's complicated. It's not role description. Role description would be, I know role description is heavily abused by React Native. It's, yeah, I think it is C spans, but you can also have a HTML markup, there's many ways of getting a link out. I think it comes from somewhere deep inside the accessibility node info that we might not even have
access to. But the problem is multiple links in a single span. You can't have a link role because it's a single link, right? Can you, I don't know, people are trying. And to be honest, I don't want to stop them from trying.
<pauljadam> no iOS has no a11y trait for an accordion "DisclosureGroup" so basically you make it a button and put the state into the a11y value
<JJ> Hint text?
pauljadam Well, now you can't provide a disclosure group trait to an element. You know, you'd have to use the disclosure group. There's no accordion trait. So like you're saying, you basically have to make it a button and then put the state into the value. put things into the hint, which, you know, that's sort of the stuff we might want to talk
about, like the right place to put the right information or what is the wrong place to put things.
<pauljadam> I would say WCAG does not require you to create or invent custom roles when you don't have a native role/trait available like the accordion is fine to be a button with an expanded and collapsed value.
ACTION: How to recommend best-practices, and mention platform capabilities and limitations, in a way that it 'empowers' people instead of restricting them
<pauljadam> and you could say that WCAG probably allows a custom checkbox to have a Toggle trait rather than an invented "checkbox" role
<pauljadam> for web controls as long as you follow ARIA spec correctly then you are meeting Name Role Value even if the user agent has poor support for ARIA
ACTION: How to recommend best-practices, and mention platform capabilities and limitations, in a way that it 'empowers' people instead of restricting them
This applies directly as written, and as described in Intent from Understanding Success Criterion 4.1.2, replacing “components generated by scripts” with “components generated by custom code”, replacing “user agents, including assistive technologies” with “assistive technologies and accessibility features of underlying software”, and replacing the WCAG2ICT notes for non-web software with the notes below.
With these substitutions, it would read:
4.1.2 Name, Role, Value: For all user interface components (including but not limited to: form elements, links and components generated by custom code), the name and role can be programmatically determined; states, properties, and values that can be set by the user can be programmatically set; and notification of changes to these items is available to assistive technologies and accessibility features of underlying software.
Note 1
This information is exposed through the accessibility services of platform software. The properties used differ per platform software (e.g. Android, iOS) and application framework, and do not necessarily map one-to-one to WCAG terms.
Example
On Android, className conveys the role; the checked and selected states and stateDescription convey states; RangeInfo conveys a value. On iOS, accessibilityTraits can convey a role (button) or a state (selected), and accessibilityValue can convey a state (on) or a value (60%).
Note 2
The role identifies the function of the user interface component. Where the platform software provides no matching role, the requirement should be met as closely as the available technical capabilities allow, using the closest available role together with states and values that convey the component’s current condition.
Example
On iOS, which provides a toggle button trait but no checkbox trait, a custom checkbox exposes the toggle button trait and conveys whether it is checked through the selected trait or the accessibility value.
Note 3
Whether a screen reader announces the role depends on the assistive technology and user settings. A usage hint such as “double tap to activate” does not replace a programmatically determinable role.
Example
A selected navigation tab exposes “Home” as its name, tab as its role and selected as its state through the corresponding accessibility properties. Combining “Home, selected, tab” in the name without exposing the role and state does not make that information programmatically determinable.
Example
In a set of four tabs, only the active tab exposes the selected state. Activating another tab updates the exposed states and makes notification of the change available to assistive technologies.
Example
A brightness slider exposes “Brightness” as its name, a role identifying it as adjustable, and “60%” as its value. Assistive technologies can change the value through increment and decrement actions, after which the exposed value matches the new setting.
Example
A password visibility button changes its name from “Show password” to “Hide password” when the password becomes visible. Alternatively, it keeps the name “Show password” and exposes an on/off state indicating whether the password is visible.
Activity
jamieherrera commentedon Aug 29, 2024
Conceptually, (as seen in the Notes for WCAG2ICT and Understanding in WCAG) 4.1.2 seems to primarily guide customizations and their interactions with (at least some) AT.
In thinking about a mobile context for 4.1.2, I have two questions I hope the group can decide on:
WCAG seems a bit circular in reasoning defining "control" and "UI component". there is a use of "including but not limited to..." which makes it hard to pin down whether non-interactive UI elements apply (such as when VoiceOver doesn't include the word, "image", for informational meaningful images that are not other traits, it's very likely custom, but are images even in scope for 4.1.2?)
JJdeGroot commentedon Oct 23, 2024
@jamieherrera
For you first point, I have always interpreted it as interactive elements. Meaning that a non-interactive image would not be required to have it's role set to
image. But I agree that would be very helpful.I think one of the major differences between Android/iOS and Web is that web uses
altto set a label for images, while Android/iOS usecontentDescription/accessibilityLabel; which are the same properties used for setting a name in 4.1.2.It might help to make the scope of elements broader, but we have to be careful about introducing any edge cases.
For your second point, I agree it would be good to include hardware keyboard in our updated definition of
assistive technology. Double check when working on the definition ofkeyboard interfaceJJdeGroot commentedon Oct 23, 2024
Discussed in today’s meeting.
23 October 2024
Source
ACTION: Continue discussion next week
detlevhfischer commentedon Oct 23, 2024
I think the general assumption both in WCAG2ICT and standards like EN 301 549 is that keyboard (without running any AT) is just another input mode that 2.1.1 requires to be supported by software, incl. mobile apps. That Apple added keyboard support belatedly to be activated as an accessibility setting does not seem to force us to classify it as AT? At least on an iPad with Magic Keyboard, shouldn‘t the assumption be that all UIE are keyboard accessible (tab or arrow keys) and would fail 2.1.1. if they aren‘t? I would not mix this up with 4.1.2.
But maybe I‘m all wrong and we need to align more closely with current mobile development constraints…
jamieherrera commentedon Oct 23, 2024
@detlevhfischer that's essentially what I'm trying to capture is whether as a group we feel that the use case for a physical keyboard in the native mobile space (especially in the Apple context of FKA as an Accessibility feature) merits a deviation from WCAG, as the physical keyboard (and onscreen keyboard in tablets/ touchscreen laptops) is an extension of the interface itself, whereas a physical keyboard for a mobile phone (and tablets, to some extent) is an accessory tool.
detlevhfischer commentedon Oct 25, 2024
As far as the AGWG is concerned, the consensus so far (if I read it correctly) has been to de-emphasize the desktop/mobile distinction, in part because of the growing confluence of both.
If we, as a group, choose a deviation, the question remains whether keyboard accessibility would still be a requirement - so that after activating the Keyboard setting on iOS (I think it is reasonable to expect kb users to know and activate that setting), everything is indeed keyboard-accessible (in some way). If that would be the line we take, it seems there wouldn‘t be a big difference to applying WCAG undeviated?
How would we treat keyboard SCs like 2.1.1 and 2.4.3 in a context where we do embark on a deviation? This is not a rhetorical question. In practical terms it could mean that a less stringent implementation of keyboard focus order would be acceptable (some deviations of order? - A wild mix of tab and arrow keys? Or accepting that for reaching some UIE, kb users would need visual feedback to move arrow keys — provided that in a screenreader + touch mode of use, SR focus does reach everything sequentially)?
JJdeGroot commentedon Oct 30, 2024
Discussed in today’s meeting.
30 October 2024
Source
detlevhfischer commentedon Jan 22, 2025
Having read the article on Android accessibility: Roles and TalkBack by Greame Coleman and raising the issue of conformance assessment in the a11y slack channel > mobile testing, I wonder if our advice can pin down what native elements in iOS / Android come with their baked-in role, whixch ones don't and which ones may be OK without any extra role assigned. The example in Graeme's article is
iteminsidemenuand @JJdeGroot commented that it is indeed difficult to add role information here. Are we going to propose such elements can then be treated as exceptions? Would usage info scuh as "double-tap to activate", present when TalkBack is set to high verbositiy, be sufficient? Are there common custom elements for which no suitable role information can be given? I think it would be good to draw up a list of the most common UIE for both platforms and work out what kind of (missing, incorrect) role information would actually constitute a FAIL and what is acceptable (even if not ideal). Testers in my context currently come up with different conformance results, and better guidance is urgently needed.This also relates to @jamieherrera's issue above regarding roles of non-interactive elements (such as lists, images). I think this is somewhat easier: I would generally argue that there is a trade-off between suppying role information on these: for example, it may be useful to know that a menu implemented as list has 14 entries, but it also increases the verbosity and may be distracting. So I tend to pass cases where from a usage perspective, I am led to believe that there is no real issue when role info is missing.
JJdeGroot commentedon Jan 23, 2025
Hi @detlevhfischer I agree such information would be very helpful, and fitting for our group to determine. But, that would probably be an Understanding document, which is not planned in this phase.
For the SC text, I think that we need to consider adding an exception that covers situations such as Android's menu item that does not have a role by default AND can (easily) be set by the author either.
4.1.2 does not have an exception for controls provided by the user agent or platform software.
On Android and iOS, the standard controls do not always meet this success criterion.
WCAG2ICT modifies the Note above:
where "already meet" has been toned down to "most already meet". But what happens to those components that are not part of "most"?
WCAG2ICT adds two more notes:
once again, using "most"
and
using "often"
I think we should add the exception in the SC text itself. Something like:
And then we could add a note with some common cases where default user interface components fail 4.1.2? Later we can build that out in an Understanding doc.
detlevhfischer commentedon Jan 27, 2025
Role information on product tiles, naming of buttons
I would like to discuss a very common scenario and raise questions regarding necessary role information and necessary labels.
An e-commerce product tile contains various bits of information on one screen reader focus point (In this order, essentially following visual order): (optionally) bonus amounts available when purchasing it; a thumbnail image (not rendered programmatically because it is redundant to the product description below); the price; the product name; a qualifying product description specifying the amount or other attributes like "frozen"; the equivalent price per kilogram. The next focus point is a button placed on top of the tile: "add product to shopping list".
The tile is interactive and goes to a view showing the individual product enlarged and with scant additional information. The tile has no role info like button, despite being interactive. However, when "speak usage hints" under Accessbility > TalkBack > Verbosity is set, the system generates "doubletap to activate".
From a screen reader usability perspective, grouping the product price name and info in one focus point has the advantage that navigating from product to product is speedier than going through the individual elements individually. Information can be accessed individually when navigating by paragraphs.
The question arises whether the lack of role information on the product tile (e.g. role "button") is a problem here that would be a FAIL of 4.1.2 Name, Role, Value (applied to mobile). The next focusable element after the tile is a button with a clear name ("add to shopping list") and the appropriate role, even though the context (what is the product to be added to the shopping list) is only available on the preceding focus point. Disregarding the navigational context, the button may be considered to fail 2.4.6 Headings and labels (applied to mobile). Adding the product name to the button text, however, would make the output a lot more verbose, so there is a trade-off between sufficient label text disregarding navigational context, and usability considering the common navigational context, where each product description is followed by the same generic button.
My personal view is that in this conventional and repetitive context, the lack of role information on the interactive product tile and the lack of specific name on the following action button are not practical problems. If so, it is unclear how to define any exceptions for 4.1.2 and 2.4.6. The normative text does not seem to afford such exceptions.
@JJdeGroot I realize this is unlikely to go into notes at this point and more likely to inform a future understanding text - but I guess it is a pressing question for many people conducting audits of mobile apps.
16 remaining items
JJdeGroot commentedon Jul 4, 2025
Discussed in meeting on 25 June 2025.
25 June 2025
Source
TanyaVanWorkum commentedon Oct 16, 2026
Relevant discussion whether
disabled,requiredandinvalidstates should be covered by 4.1.2: in w3c/wcag#5399TanyaVanWorkum commentedon Dec 2, 2026
Discussed in the meeting of 21 October 2026.
21 October 2026
Source
ACTION: How to recommend best-practices, and mention platform capabilities and limitations, in a way that it 'empowers' people instead of restricting them
TanyaVanWorkum commentedon Dec 2, 2026
Proposed text for 4.1.2 Name, Role, Value
This applies directly as written, and as described in Intent from Understanding Success Criterion 4.1.2, replacing “components generated by scripts” with “components generated by custom code”, replacing “user agents, including assistive technologies” with “assistive technologies and accessibility features of underlying software”, and replacing the WCAG2ICT notes for non-web software with the notes below.
With these substitutions, it would read:
4.1.2 Name, Role, Value: For all user interface components (including but not limited to: form elements, links and components generated by custom code), the name and role can be programmatically determined; states, properties, and values that can be set by the user can be programmatically set; and notification of changes to these items is available to assistive technologies and accessibility features of underlying software.
Note 1
This information is exposed through the accessibility services of platform software. The properties used differ per platform software (e.g. Android, iOS) and application framework, and do not necessarily map one-to-one to WCAG terms.
Example
On Android,
classNameconveys the role; the checked and selected states andstateDescriptionconvey states;RangeInfoconveys a value. On iOS,accessibilityTraitscan convey a role (button) or a state (selected), andaccessibilityValuecan convey a state (on) or a value (60%).Note 2
The role identifies the function of the user interface component. Where the platform software provides no matching role, the requirement should be met as closely as the available technical capabilities allow, using the closest available role together with states and values that convey the component’s current condition.
Example
On iOS, which provides a toggle button trait but no checkbox trait, a custom checkbox exposes the toggle button trait and conveys whether it is checked through the selected trait or the accessibility value.
Note 3
Whether a screen reader announces the role depends on the assistive technology and user settings. A usage hint such as “double tap to activate” does not replace a programmatically determinable role.
Example
A selected navigation tab exposes “Home” as its name, tab as its role and selected as its state through the corresponding accessibility properties. Combining “Home, selected, tab” in the name without exposing the role and state does not make that information programmatically determinable.
Example
In a set of four tabs, only the active tab exposes the selected state. Activating another tab updates the exposed states and makes notification of the change available to assistive technologies.
Example
A brightness slider exposes “Brightness” as its name, a role identifying it as adjustable, and “60%” as its value. Assistive technologies can change the value through increment and decrement actions, after which the exposed value matches the new setting.
Example
A password visibility button changes its name from “Show password” to “Hide password” when the password becomes visible. Alternatively, it keeps the name “Show password” and exposes an on/off state indicating whether the password is visible.