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

Inconsistency between Tooltip Spec and APG re:delay before displaying tooltip #1099

Open
kbae00 opened this issue Jul 17, 2019 · 13 comments
Open
Assignees
Labels
Feedback Issue raised by or for collecting input from people outside APG task force Pattern Page Related to a page documenting a Pattern

Comments

@kbae00
Copy link

kbae00 commented Jul 17, 2019

ARIA Spec 1.1 and 1.2 for tooltip (role) both say: "authors SHOULD display the tooltip after a short delay". However, the Authoring Practices Guide 1.1 and 1.2 for Tooltip Widget both say "It typically appears after a small delay". The spec makes it sound like the delay is required whereas the APG makes it sound optional. They should be consistent.

@patrickhlauke
Copy link
Member

SHOULD is not an absolute requirement, compared to MUST. SHOULD leaves it open for implementations not to do something if there's a good enough reason. so the "typically" phrasing seems to fit that concept. but for avoidance of confusion the latter could probably be swapped with "It should appear..."

@jnurthen
Copy link
Member

APG is non normative so we try to avoid using normative language.

@mcking65
Copy link
Contributor

If the normative should in the ARIA spec is actually appropriate, then we could remove the "typically." If there is a reasonable scenario where the delay is not appropriate, we could also add an "unless" phrase that addresses such a scenario. That is our normal approach to "should" in the spec. If it is a "may" in the spec, we would probably just leave it as is.

I wonder, though, if the spec "should" read more like the practices does now? Is normative language justified for that aspect of the description.

@patrickhlauke
Copy link
Member

I wonder, though, if the spec "should" read more like the practices does now? Is normative language justified for that aspect of the description.

i guess it was put there as a SHOULD to prevent implementations that immediately show tooltips, which would be quite disruptive to users (particularly with cognitive disabilities, I'm hazarding a further guess) as they simply move their mouse over a densely tooltipped bit of content where they'd otherwise constantly get things popping up/covering up the content they're trying to read

@mcking65
Copy link
Contributor

Do we know of exceptional circumstances where we would recommend 0 delay? If not, I recommend we resolve this issue by deleting the word "typically."

@patrickhlauke
Copy link
Member

i wouldn't "outlaw" a 0 delay if the there a very low tooltip density / it's small / doesn't obscure any other content. removing "typically" would make it seem like it's a MUST in ARIA spec, which it isn't...

@mcking65
Copy link
Contributor

@patrickhlauke wrote:

i wouldn't "outlaw" a 0 delay if the there a very low tooltip density / it's small / doesn't obscure any other content. removing "typically" would make it seem like it's a MUST in ARIA spec, which it isn't...

If we word it as follows:

A tooltip is a popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it. It appears after a small delay and disappears when Escape is pressed or on mouse out.

I don't think that outlaws 0 or close to 0 delay. We do not define small. The APG is informative, not normative. It is consistent with how we describe other "author shoulds" where we are not aware of an exception that is common enough to describe.

The rule of thumb has been that if we use the word "typically" that it is best if we can identify the circumstances where atypical behavior is justified. That said, we are not entirely consistent in doing so.

To me, it seems reasonable to go either way -- leav as is or delete typically. We could also entertain an edit that describes atypical.

@kbae00, given the discussion, are you OK closing with no change?

@kbae00
Copy link
Author

kbae00 commented Aug 14, 2019

Apologies for the delayed response, I don't use github often and don't have proper email filters set up. Thanks for the responses and clarifications, I feel I have a clear understanding now. I don't know if I can really state my opinion here as this seems to be a matter of language of the APG and Spec themselves and I feel I'd be overstepping my bounds by making language adjustment recommendations. However, it might be helpful to know that my co-workers and I were confused and we read/refer to the spec and APG daily.

@mcking65
Copy link
Contributor

I propose the following:

A tooltip is a popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it. It appears after a brief delay, typically about X milliseconds, and it disappears when Escape is pressed or on mouse out.

I just need a number for X. This would encourage a typical delay but does not imply a very short or 0 delay does not conform with the spec. And, it avoids the challenge of defining a situation that might justify an exception to the typical case.

I think the next best option is likely no change.

Thoughts @kbae00? @patrickhlauke ?

@mcking65 mcking65 self-assigned this Aug 14, 2019
@mcking65 mcking65 added documentation Feedback Issue raised by or for collecting input from people outside APG task force Pattern Page Related to a page documenting a Pattern labels Aug 14, 2019
@mcking65 mcking65 added this to the 1.2 Release 1 milestone Aug 14, 2019
@patrickhlauke
Copy link
Member

I just need a number for X. This would encourage a typical delay but does not imply a very short or 0 delay does not conform with the spec. And, it avoids the challenge of defining a situation that might justify an exception to the typical case.

Personally, I'd say it's pointless to try and pluck some arbitrary number out of thin air here. If we're claiming something is typical, then we should research this properly and not make things up. But then, I also think there's really no need for a clarification/change, if as you say the spec isn't always consistent about needing to provide a justification/exception. (I mean if pressed, I'd say one exception would be if there's no chance that the tooltip would obscure some other content if there's sufficient margin/padding around the thing with the tooltip).

@jnurthen
Copy link
Member

@patrickhlauke I'm proposing removing the normative should from the spec and replacing with non-normative language there. I don't really see any downsides to that.

@patrickhlauke
Copy link
Member

ah sorry, missed that (was just trawling through my github emails and didn't follow that reference above to w3c/aria#1035).

yeah, fixing it at that level would work for me as well. assuming then we can leave APG as is, or is there still a need for changes?

@jnurthen
Copy link
Member

No need for APG change - see PR w3c/aria#1037 - would close this too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feedback Issue raised by or for collecting input from people outside APG task force Pattern Page Related to a page documenting a Pattern
Development

No branches or pull requests

4 participants