Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Keyboard behavior for the interesttarget attribute #11056

Open
mfreed7 opened this issue Feb 20, 2025 · 1 comment
Open

Keyboard behavior for the interesttarget attribute #11056

mfreed7 opened this issue Feb 20, 2025 · 1 comment

Comments

@mfreed7
Copy link
Contributor

mfreed7 commented Feb 20, 2025

What is the issue with the HTML Standard?

Some references first:

This issue is a narrowed down version of the OpenUI discussion above, to hone in on the right final behavior. Essentially, the explainer lays this out:

For keyboard users, the UA will provide a hot-key such as Alt-Down, which will “show interest” in the element. Another hot-key such as the ESC key will provide a way to trigger “loseinterest”. These hot-keys must be chosen by the UA to be convenient for the user, while also not conflicting with existing UA-provided and OS-provided hot-keys. Other ideas include Alt-Space or Ctrl-Space for the show interest hot key.

Additionally, the appearance of the focus ring will be altered slightly when focus is on elements with interesttarget. This allows the user to discover that something is “different” about this element, and know that the keyboard activation hot-key will allow them to show interest. Since accessibility guidelines state that color alone cannot be enough to differentiate states, this focus ring change will likely need to be something like a slightly-thicker outline, or other shape change.

That's the current direction, coming out of OpenUI discussions. However, this issue is to check that with the folks in WHATWG. In particular:

  • Should a hot-key (like Alt-Down) trigger interest, or should merely focusing the element and waiting for the interest-trigger-show-delay time to elapse be enough? Or something else?
  • To indicate to the user that an element has interesttarget, should the focus ring be changed (and if so, how), or should something else be done such as changing the browser link preview text at the bottom left/right? Or something else?
@mfreed7 mfreed7 changed the title Keyboard behavior for interesttarget attribute Keyboard behavior for the interesttarget attribute Feb 20, 2025
@mfreed7
Copy link
Contributor Author

mfreed7 commented Feb 20, 2025

We had a great discussion of the keyboard behavior today at OpenUI, and I'll be incorporating the conclusions into the explainer shortly. FYI. Thoughts appreciated, here or on the OpenUI issue.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

1 participant