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

Proposal for new aria-hint property. (Previously proposed as @aria-help) #739

Closed
jnurthen opened this issue May 7, 2018 · 4 comments
Closed
Milestone

Comments

@jnurthen
Copy link
Member

jnurthen commented May 7, 2018

https://www.w3.org/WAI/ARIA/track/issues/406

aria-hint (property)

Defines a string value that provides complementary tooltip or help text information for the current element. Also see aria-label.

The purpose of aria-hint is to provide additional information that complements the label text. For example, if the visible label of a tab is "General", the value of aria-hint may be, "Displays general preferences for the application, such as home page, history, and download preferences."

Authors SHOULD NOT provide a value for aria-hint that duplicates information already provided as all or part of the element's accessible name (label). Authors SHOULD NOT provide a value for @aria-hint if that information is already provided using the host language’s tooltip attribute, such as @title in HTML.

Hint Computation

  1. If the element has a non-empty "aria-hint" attribute, user agents will expose the value of that attribute as the Tooltip/Help value in the accessibility API.
  2. If the element has an explicitly empty "aria-hint" attribute, (aria-hint=""), user agents will expose no Tooltip/Help value in the accessibility API.
  3. If the element has no "aria-hint" attribute, but the "aria-describedby" attribute references a single element whose role is "tooltip", user agents must calculate the description using the text alternative algorithm and expose that string as the Tooltip/Help value in the accessibility API.
  4. Otherwise, if there is no ARIA-based hint, and the element includes the generic tooltip attribute (such as @title in HTML), and if the tooltip attribute has NOT been used in the name computation for the element, user agents MUST expose the value of the tooltip attribute (e.g. @title in HTML) as the Tooltip/Help value in the accessibility API.

Related Concepts

Help Tag (Apple Human Interface Guidelines)
http://developer.apple.com/mac/library/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGUsingTechnologies/XHIGUsingTechnologies.html#//apple_ref/doc/uid/TP30000355-TPXREF9

AXHelp (Apple AX API)
http://developer.apple.com/mac/library/documentation/Accessibility/Reference/AccessibilityLowlevel/AXAttributeConstants_h/CompositePage.html#//apple_ref/c/macro/kAXHelpAttribute

@carmacleod
Copy link
Contributor

2 concerns:

  1. Isn't this basically the same as aria-describedby, and will just add confusion? Authors would need to know the subtle differences between label, description, hint, title... and how browsers resolve conflicts & render each one.
  2. Bigger concern - any time we add something else that isn't visibly rendered, it creates yet another difference between "the AT version of the page" and "the non-AT version of the page", which is an anti-pattern.

@johnfoliot
Copy link

johnfoliot commented May 7, 2018 via email

@jnurthen
Copy link
Member Author

jnurthen commented May 7, 2018

I appreciate the discussion. As we prepare to leave tracker behind (finally) we are migrating all old issues over. I would not expect to even look at this one until ARIA 1.4 (at least) so I wouldn't spend too much time discussing this right now.

@jnurthen jnurthen modified the milestone: ARIA 1.4 May 7, 2018
@jnurthen jnurthen added this to the ARIA 1.4 milestone May 8, 2018
@jnurthen jnurthen removed the ARIA 1.4 label Feb 27, 2021
@jnurthen
Copy link
Member Author

jnurthen commented Sep 9, 2023

lets close this as overcome - it hasn't had discussion in years

@jnurthen jnurthen closed this as completed Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants