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

Toolbar Example: Add missing descriptive tooltips #986

Closed
mcking65 opened this issue Feb 10, 2019 · 10 comments
Closed

Toolbar Example: Add missing descriptive tooltips #986

mcking65 opened this issue Feb 10, 2019 · 10 comments
Assignees
Labels
enhancement Any addition or improvement that doesn't fix a code bug or prose inaccuracy Example Page Related to a page containing an example implementation of a pattern good first issue Issue with Straightforward resolution; could be good learning experience for new contributors help wanted Task force is looking for an owner for the issue

Comments

@mcking65
Copy link
Contributor

Per comment in issue 539
by @sh0ji about the toolbar example,
all the controls should have a descriptive title attribute so sighted users don't have to infer or discover their function.
Currently, some have tooltips and some do not.

@mcking65 mcking65 added enhancement Any addition or improvement that doesn't fix a code bug or prose inaccuracy help wanted Task force is looking for an owner for the issue Example Page Related to a page containing an example implementation of a pattern good first issue Issue with Straightforward resolution; could be good learning experience for new contributors labels Feb 10, 2019
@mcking65 mcking65 added this to the 1.1 APG Release 4 milestone Feb 10, 2019
@lenoraporter
Copy link

Anyone working on this task?

@ardnahcivar
Copy link

@lenoraporter , yes .

@css-meeting-bot
Copy link
Member

The ARIA Authoring Practices (APG) Task Force just discussed Toolbar tooltip implementation.

The full IRC log of that discussion <AnnAbbott> TOPIC: Toolbar tooltip implementation
<jongund> https://raw.githack.com/w3c/aria-practices/issue986-toolbar-button-tooltips/examples/toolbar/toolbar.html
<zcorpan> GitHub: https://github.com//issues/986
<AnnAbbott> jg: added labelledby to div
<AnnAbbott> Carolyn: controversial because could be announced twice
<AnnAbbott> jg: role=tooltip on actual content
<AnnAbbott> Carolyn: Narrator will announce when navigated to
<AnnAbbott> jg: used as both tooltip and label
<AnnAbbott> mck: if used as descendent of button, shouldn't have role=tooltip
<AnnAbbott> Dorothy: adding more stuff and getting confusing
<AnnAbbott> Carolyn: if only using kbd, title doesn't appear
<AnnAbbott> jn: except Edge and IE 11 running on Win8 and above
<jemma_> rrsagent, make minutes
<RRSAgent> I have made the request to generate https://www.w3.org/2019/06/04-aria-apg-minutes.html jemma_
<AnnAbbott> mck: agreed lasts week that not relying on title attribute
<AnnAbbott> mck: part of question is whether using tooltip role on button
<AnnAbbott> mck: screen reader always sees the text, ignoring tooltip
<AnnAbbott> mck: text is always hidden except on hover or focus
<CurtBellew> +1
<AnnAbbott> https://raw.githack.com/w3c/aria-practices/issue986-toolbar-button-tooltips/examples/toolbar/toolbar.html
<MarkMcCarthy> WCAG 2.1 SC 1.4.10 https://www.w3.org/TR/WCAG21/#content-on-hover-or-focus
<MarkMcCarthy> s/1.4.10/1.4.13
<AnnAbbott> mck: remove role=tooltip, make hover be persistent and hide font icons from accessible name
<jemma_> "If pointer hover can trigger the additional content, then the pointer can be moved over the additional content without the additional content disappearing;"
<mck> Making tooltip persistent on hover is for WCAG 2.1 compliance.
<AnnAbbott> Curt: tooltip goes away unless hovering over tooltip
<AnnAbbott> Carolyn: copy/paste/cut buttons are different
<AnnAbbott> mck: that's classic tooltip implementation
<AnnAbbott> mck: using describedby
<AnnAbbott> mck: remove title attribute from cut/copy/paste and help buttons
<AnnAbbott> jn: Bold is wrapping weird
<MarkMcCarthy> Nice work Jon!
<MarkMcCarthy> Dorothy: possible to change the width? thinking about somebody changing the size
<MarkMcCarthy> Jon: I made some adjustments, I'll send out a new link and comments can be made on the list

@css-meeting-bot
Copy link
Member

The ARIA Authoring Practices (APG) Task Force just discussed Tooltips in Toobar Example.

The full IRC log of that discussion <AnnAbbott> TOPIC: Tooltips in Toobar Example
<AnnAbbott> Preview link of John's tooltips: https://raw.githack.com/w3c/aria-practices/issue986-toolbar-button-tooltips/examples/toolbar/toolbar.html
<AnnAbbott> Issue 986 Tooltip: https://github.com//issues/986
<zcorpan> GitHub: https://github.com//issues/986
<AnnAbbott> jg: just a div with aria-label. Is that what we want?
<AnnAbbott> jg: meets WCAG 2.1 now
<AnnAbbott> Carolyn: Scott O'Hara has input on this
<AnnAbbott> jg: call it a popup label?
<AnnAbbott> Carolyn: confront Scott's issue at another time
<AnnAbbott> Jemma: add WCAG compliance information under Accessibility Features
<AnnAbbott> jn: doesn't close on FF/Win
<AnnAbbott> jn: with mouse
<AnnAbbott> Jemma: works for me with mouse
<AnnAbbott> jn: ESC should always close
<AnnAbbott> jn: WCAG 1.4.13
<jemma_> 1.4.13 Content on Hover or Focus (Level AA)
<AnnAbbott> Jemma: will come back to this

@carmacleod
Copy link
Contributor

@jongund Here's what I see on focus (popup label's "tail" is perfectly joined to the text bubble):
image

And here's what I see on hover (popup label's "tail" is slightly separated from the text bubble):
image

I'm on Windows 10, latest Chrome. I'll see if I can debug it.

@carmacleod
Copy link
Contributor

@jongund
I can make the above problem go away by making any one of the following 3 CSS changes.
Your choice which one you like best.

1. change the 2px white border to be 1px in:

[role="toolbar"] button .popup-label {
    ...
    border: 1px solid white;
    ...
}

OR
2.
change the top/bottom padding from 2px to 1px in:

[role="toolbar"] button .popup-label {
    ...
    padding: 1px 4px;
    ...
}

OR (this one is a bit strange... ;)
3. change the top from 100% to 99% in:

[role="toolbar"] button .popup-label:after, [role="toolbar"] button .popup-label:before {
    top: 99%;
    ...
}

@jongund
Copy link
Contributor

jongund commented Jun 19, 2019

@carmacleod Carolyn thanks for the fixes I like the first option the best, I will make the change.

@jongund
Copy link
Contributor

jongund commented Jun 19, 2019

@carmacleod Do you want to check the updated example:
Toolbar Example from GitHub branch

@carmacleod
Copy link
Contributor

@jongund Works perfectly! Thank-you!

mcking65 pushed a commit that referenced this issue Jul 11, 2019
To resolve issue #986, changes the toolbar example so that icons have labels that popup on hover or focus.
@mcking65
Copy link
Contributor Author

Resolved with commit 19f3cdf from merging pr #1069. Thank you @jongund!! Thank you also to the several other people who contributed ideas and feedback!

michael-n-cooper pushed a commit that referenced this issue Jul 11, 2019
Toolbar Example: Add missing tooltips for issue 986 (pull #1069)

To resolve issue #986, changes the toolbar example so that icons have labels that popup on hover or focus.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any addition or improvement that doesn't fix a code bug or prose inaccuracy Example Page Related to a page containing an example implementation of a pattern good first issue Issue with Straightforward resolution; could be good learning experience for new contributors help wanted Task force is looking for an owner for the issue
Development

No branches or pull requests

6 participants