fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Teaching bubble close icon does not have a tooltip

Open caiomontei opened this issue 7 years ago • 6 comments

Codepen demonstrating the issue

https://codepen.io/anon/pen/GVErJr

Actual behavior:

Tabbing or hovering to the close icon does not show any tooltip. The close button also does not contain an aria label.

Expected behavior:

A tooltip should appear indicating that the icon is used for closing the callout. The button should have an aria label so it is announced by screen readers.

Documentation describing expected behavior

https://www.w3.org/WAI/WCAG21/Understanding/sensory-characteristics.html https://www.w3.org/WAI/WCAG21/Understanding/name-role-value.html

caiomontei avatar Jul 31 '19 21:07 caiomontei

Hi @caiomontei, Thanks for submitting this issue! I have confirmed that this is an issue and we will work on getting it fixed!

marygans avatar Aug 02 '19 04:08 marygans

Hi @caiomontei closeButtonAriaLabel="Close" needs to be added for the tooltip and aria label to be shown/read as you can see in the example here. I will make sure the Teachingbubble examples include that. Thanks :)

marygans avatar Aug 08 '19 22:08 marygans

hi @marygans,

Thanks for the info. Unfortunately, this just solves the problem partially, since the tooltip just appears on mouse hover. If the user is using keyboard and focus on the icon, nothing appears.

Thanks

caiomontei avatar Aug 08 '19 22:08 caiomontei

hi @marygans,

Thanks for the info. Unfortunately, this just solves the problem partially, since the tooltip just appears on mouse hover. If the user is using keyboard and focus on the icon, nothing appears.

Thanks

I see. In Edge, tooltip on focus is a default behavior, but not for other browsers and thats intended behavior for this component.

Can I suggest using the tooltip component for that specific behavior? which is a more intentional activation of a tooltip on focus.

marygans avatar Aug 08 '19 23:08 marygans

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React!

msft-github-bot avatar Aug 13 '19 00:08 msft-github-bot

hi @marygans,

What do you mean by using the Tooltip component? Completely replace the teaching bubble with a Tooltip, or somehow use the tooltip component inside the teaching button for the close icon.

If it is the latter, I could not find any callbacks where I can provide my custom close icon implementation.

thanks

caiomontei avatar Aug 13 '19 00:08 caiomontei