Explain :focus-visible intent, add examples and UA guidance#2897
Conversation
c163ec2 to
6a01130
Compare
|
I'm concerned about the phrase "element which does not support user input". Technically, every focusable element supports user input. That input may only be activation, though. Maybe make it "text input" explicitly? |
| such that the focus is moved to a new element | ||
| which does <em>not</em> support user input, | ||
| the newly focused element | ||
| should <strong>not</strong> not match '':focus-visible''.</li> |
|
@AmeliaBR Yeah, I hesitated over that text, but I wasn't sure about "text input" because it's also numeric, date/time etc so I hedged. How about this?
|
|
(Added a bullet point regarding user preferences at the top of the heuristics list.) |
|
Yeah, we discussed this many times... it is wonky to define in terms we have - even 'virtual keyboard' is potentially a little confusing if you think of it as the qwerty thing, really it's pretty much any means of inputting text of some kind into some kind of control. I think the text here is pretty good |
|
@tabatkins @fantasai curious about the state of this PR. (See link to TAG issue above; we keep pushing it forward on the TAG agenda.) |
|
friendly ping, @tabatkins or @fantasai do y'all have any thoughts? |
|
Per w3ctag/design-reviews#233, consider this a friendly ping @tabatkins |
|
Just did some very minor cleanup of markup, and tweaked some 2119 term usage. Otherwise this looks great, thanks so much @alice! |
|
Travis Leithead from Microsoft realized there were a couple of typos in the code example; |
@tabatkins Following up on #2481, trying to more clearly explain the intent of this pseudo-class and provide better author and UA guidance.
Thanks to @patrickhlauke and @AmeliaBR for inspiration for the second example (not sure how to credit you in the spec).
cc @robdodson @bkardell