Skip to content
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

2.4.7 Focus Visible - explanation/understanding addition about "mode of operation"? #301

Closed
patrickhlauke opened this issue Sep 4, 2017 · 13 comments

Comments

@patrickhlauke
Copy link
Member

The current wording of the SC

2.4.7 Focus Visible: Any keyboard operable user interface has a mode of operation where the keyboard focus indicator is visible

talks about a "mode of operation". However, the understanding document https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-focus-visible.html currently doesn't mention/explain this at all. What exactly is meant by "a mode of operation"? A user setting? Does the act of using a keyboard itself constitute a "mode of operation"? It would be good to get at least a mention of this in understanding.

@alastc
Copy link
Contributor

alastc commented Jun 28, 2019

Going through old issues, but I've been updating focus-visible so this is relevant.

For HTML-based web content I've generally ignored this phrase, assuming the default 'mode of operation' is the only mode of operation. I was assuming it accounted for flash or something, where there might be multiple modes of operation?

In the new draft, how about a line such as:

Where the success criterion says “mode of operation”, this is to account for platforms which may not always show a focus indicator. In most cases there is only one mode of operation so this success criteria applies.

@patrickhlauke
Copy link
Member Author

Context of this is question was also certain arguments for/against the use of :focus-visible, which allows you to style the focus state when the browser/UA/platform itself would show it. case in point buttons or links that when clicked with the mouse wouldn't show an outline/focus indicator by default, but when focused via keyboard they do. There have been various discussions saying this is bad/contravenes 2.4.7, whereas i'd argue that using :focus-visible is within the spirit of 2.4.7, as there IS a mode of operation where the keyboard focus indicator is visible...and that's when the user is actually using the keyboard to navigate. whether or not it shows the focus indicator when operating things purely with a mouse (or touchscreen, or whatever) is then not a failure, provided that once they switch to using keyboard it becomes visible

@patrickhlauke
Copy link
Member Author

in short, if the WG agrees with my above interpretation/assessment, i'd rather have the understanding doc explain this idea of "mode of operation" as in "a way in which the user controls/operates their UA / which input method they use", and perhaps a positive technique that shows the use of :focus-visible to satisfy 2.4.7

@alastc
Copy link
Contributor

alastc commented Jun 28, 2019

Huh, I hadn't come across that argument before. To me the key words in the SC are "keyboard focus indicator", not focus indicator or mouse-focus indicator.

How about:

“Mode of operation”, accounts for platforms which may not always show a focus indicator, or only show the focus indicator when the keyboard is used. User agents may optimse when the focus indicator is shown, such as only showing it when a keyboard is used.

Or suggest something...

@patrickhlauke
Copy link
Member Author

I hadn't come across that argument before

the most recent one I can remember was here https://twitter.com/patrick_h_lauke/status/1048303192147152896

I'll ponder this / put it in my to-do list :)

@alastc
Copy link
Contributor

alastc commented Jul 1, 2019

Well, that paragraph above is in the the focus-more-visible draft for WCAG 2.2. whether that replaces the current 2.4.7 or is as well-as depends on the discussion on the list at the moment.

@patrickhlauke
Copy link
Member Author

patrickhlauke commented Jul 1, 2019

yeah sorry, wasn't meaning that your suggested text was insufficient or anything. just not had time to fully review that whole hornets' nest. may end up with more like a positive technique that shows it's kosher to use :focus-visible but otherwise suppress focus indication as result of mouse interaction or similar, then it's crystal clear that we think that's in line with the spirit here (assuming we do)

@alastc
Copy link
Contributor

alastc commented May 5, 2020

Noting that the above text in the understanding doc for 2.4.7 now:
https://www.w3.org/WAI/WCAG21/Understanding/focus-visible.html

Can we close this one? A PR for a new technique would be separate anyway...

@patrickhlauke
Copy link
Member Author

Yup, all good to close this. If I get a chance/remember, I'll do a tiny positive technique using :focus-visible.

WCAG 2.2 automation moved this from To do to Editor's draft May 6, 2020
@alastc alastc moved this from Editor's draft to Done in WCAG 2.2 May 6, 2020
@alastc
Copy link
Contributor

alastc commented May 6, 2020

Re-opening as it was missed by the group when included in the focus-visible enhanced PR.

@alastc alastc reopened this May 6, 2020
@alastc alastc moved this from Done to In progress in WCAG 2.2 May 6, 2020
@alastc alastc moved this from In progress to To Survey in WCAG 2.2 May 6, 2020
@mbgower
Copy link
Contributor

mbgower commented May 26, 2020

I'd want us to be careful with a sufficient technique using :focus-visible. We should consider a matching failure technique where the designated values (outline, background) by the author cause the focus visibility to fail.

BTW, Mozilla has a nice page showing some of the different pseudo-classes.

https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible

@alastc
Copy link
Contributor

alastc commented Jun 2, 2020

In the call we settled on this text:

“Mode of operation” accounts for user-agents which may not always show a focus indicator, or only show the focus indicator when the keyboard is used. User-agents may optimize when the focus indicator is shown, such as only showing it when a keyboard is used. Authors are responsible for providing at least one mode of operation where the focus is visible.

I'll add it to the focus-visible branch.

alastc added a commit that referenced this issue Jun 2, 2020
@alastc
Copy link
Contributor

alastc commented Jun 2, 2020

Added in this update, so closing.

@alastc alastc closed this as completed Jun 2, 2020
WCAG 2.2 automation moved this from To Survey to Ready for Editor's draft Jun 2, 2020
@alastc alastc moved this from Ready for Editor's draft to Done in WCAG 2.2 Jun 3, 2020
alastc added a commit that referenced this issue Aug 4, 2020
* Updates to the SC text and ripple effects.

* Criterion typo

* Updated SC in understanding, minor 2.4.7 update

* Updates from issue 1055

* Aligned the 'at least' phrases in the SC text.

* Update bsaed on 1064

* Updated mode of operation

Based on #301

* Adding to the size metric and updating 1st line

* Updated understanding to match SC text

* Changes from the meeting

https://www.w3.org/2020/06/30-ag-minutes.html#item02

* Adding 'discernable'

https://www.w3.org/2002/09/wbs/35422/focus-visible-enh-issues3/results#xq4

* Adding fstorr's updates

I needed to set this up to merge with the feature branch (rather than master) and my git-fu was no enough, so re-creating.

* Renaming focus-vis-eng to focus-appearance-minumum

* renaming the focus-appearance understanding doc

* Adding Focus Appearance (Enhanced)

* Adding technique for focus-appearance-enh

* Added AAA to the new stuff section.

* mbgowers update

* SC updates from #1212

* Removing failures from focus-vis #1067

Co-authored-by: Alastair Campbell <acampbell@nomensa.com>
patrickhlauke added a commit that referenced this issue Jul 11, 2023
Two years late, but: here's the technique I intended to write for #301 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
WCAG 2.2
  
Done
Development

No branches or pull requests

3 participants