-
Notifications
You must be signed in to change notification settings - Fork 257
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
Proposed definition for Inactive #1154
base: main
Are you sure you want to change the base?
Conversation
a rewording/restructuring of the proposed PR here? #638 |
@patrickhlauke yes, based on the discussion on the call earlier today. |
i'll close the other one then... |
@patrickhlauke that's fine as the WG seemed to want to go in this direction. If we need to redirect again we can always reopen 638 |
Just dropping in to say I have reread the proposed definition and I think it is really quite good. Thanks! This edit is much better than my idea of simply replacing |
Looks good to me. |
Just a heads-up ... is this going to be merged? |
<dd class="new"> | ||
<p class="change">New</p> | ||
<p>A state of a <a>User Interface Component</a> when it is not available for user interaction, such as a disabled control in HTML. An inactive user interface component is present but not currently operable using standard input mechanisms such as keyboard, pointer, or assistive technology.</p> | ||
<p class="note">An example inactive user interface component is a submit button at the bottom of a form which is present but cannot be activated until all the required fields in the form are completed.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about controls that take focus but cannot be activated such as a date in a grid which is not available or the other control types specified at https://w3c.github.io/aria-practices/#kbd_disabled_controls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think that's covered by the proposed definition there, since it says nothing about whether or not the inactive component can receive focus or not...just that it's not available for user interaction (unless you mean that even the act of focusing on it is an interaction?) / operable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes IMO focusing is an interaction so this doesn't apply if focusable as written
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That wording from the APG really complicates things. I'm inclined to say that if something is navigable but not operable, it should not be considered disabled (and should not be given a pass on text contrast considerations). We spent a lot of time at IBM designing read-only versions of components; it was difficult, but it is possible. There should be a way of achieving minimum contrast for unavailable options in a listbox (to use one of the APG examples), if the desire is to make them discoverable by all. Letting them be 'discoverable' programmatically but not visually seems inequitable.
<dt><dfn>inactive</dfn> (user interface components)</dt> | ||
<dd class="new"> | ||
<p class="change">New</p> | ||
<p>A state of a <a>User Interface Component</a> when it is not available for user interaction, such as a disabled control in HTML. An inactive user interface component is present but not currently operable using standard input mechanisms such as keyboard, pointer, or assistive technology.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about?
<p>A state of a <a>User Interface Component</a> when it is not available for user interaction, such as a disabled control in HTML. An inactive user interface component is present but not currently operable using standard input mechanisms such as keyboard, pointer, or assistive technology.</p> | |
<p>A state of a <a>User Interface Component</a> when it is not available for user interaction, such as a disabled control in HTML. An inactive user interface component is present, and in some cases may even be focusable, but is not currently operable using standard input mechanisms such as keyboard, pointer, or assistive technology.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd still say that this is unnecessary, but can live with it...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, I think this is marring the definition of inactive, which I think is both inoperable AND not navigable.
<p>A state of a <a>User Interface Component</a> when it is not available for user interaction, such as a disabled control in HTML. An inactive user interface component is present but not currently operable using standard input mechanisms such as keyboard, pointer, or assistive technology.</p> | |
<p>A state of a <a>User Interface Component</a> when it is not available for user interaction, such as a disabled control in HTML. An inactive user interface component is present but not currently operable or navigable using standard input mechanisms such as keyboard, pointer, or assistive technology.</p> |
It would be useful to resolve whether we think 'inactive' controls can be focusable before taking it back to the group. Sorry, slipped off my radar as the issue was closed. |
personally, still think that the concepts of inactive/disabled/inoperable and focusable are two orthogonal things. thinking for instance about but it's definitely worth mentioning this, as not everybody (even here) seems to agree. i can live with something along the lines of @jnurthen's suggestion (or even as a separate standalone |
I have always understood that readonly controls are NOT inactive. Read-only controls can be operated (you can move the cursor and copy them) so they certainly shouldn't be exempt from any contrast requirements. |
so we may need some clarification of this aspect too, perhaps?
|
We go into this a bit in ARIA Authoring Practices https://www.w3.org/TR/wai-aria-practices-1.2/#kbd_disabled_controls |
The fact that disabled or inactive elements are excluded from the contrast requirements is, in my opinion, a mistake in the WCAG. This is shown by the ARIA example. If the ARIA Guidelines say that sometimes disabled elements should be accessible so that they can be perceived with assistive technology, then these elements should also have sufficient contrast. See #869 |
Perhaps, but it is due to there not being a solution to the problem of many people thinking the control is active when it isn't. I've seen that happen myself in usability testing. Without a solution to that problem, it isn't likely to change. If Patrick's list above is agreeable then perhaps something like (bold for new, at the end):
|
would be good for this to be finalised/clarified (as this topic has come up in discussions again today) |
I'd reopen this, as it seemed close to agreed/consensus at the time, and probably still something that would be good having? |
@alastc would be good to get this looked at again in the WCAG 2.x calls at some point soon to clear the deck |
✅ Deploy Preview for wcag2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I agree that a read-only control is not inactive. Most can take focus, and if a read-only control's content was greyed out, I would consider that a failure of Contrast, since the content is in a state intended for consumption. So I'm inclined to say that something that can take focus is not inactive. That seems to be supported by the final note:
|
If anyone is looking for that content, I believe it's moved to this Developing A Keyboard Interface page. |
Context: https://www.w3.org/2020/06/09-ag-minutes#item07
Survey: https://www.w3.org/2002/09/wbs/35422/2020-05-cwa/results#x302
Preview | Diff