fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

TooltipHost has no way to turn off aria-describedby

Open petdun2519 opened this issue 9 years ago • 2 comments

For some cases, like if you are trying to add a tooltip to text that is ellipsied by css, you want a visual only tooltip that will not affect screenreaders (because the screenreader can read all the text in the HTML already and doesn't care if some of it is hidden via css)

Bug Report

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Yes I have one

Requested priority: Low

Products/sites affected: All

petdun2519 avatar May 24 '17 20:05 petdun2519

@petdun2519, just for clarification ToolTipHost component doesn't attaches aria-describedby by default. Take https://fabricreact.azurewebsites.net/fabric-react/master/#/examples/Tooltip for example, we decorate a button with TooltipHost and that just works as a visual tip until we provide an explicit aria-describedby on the button and pass the same id to TooltipHost that links it to its tooltip text. Long story short, what you are asking in this issue is already flexible. Let me know if there is any confusion. :)

PS: As I mentioned in your PR, we should remove the aria-describedby that tooltip uses on itself. It provides no accessibility improvement, plus it's confusing to see tooltiphost linking that attribute.

mdahamiwal avatar May 25 '17 17:05 mdahamiwal

@mdahamiwal wow... didn't realize that haha. That aria-describedby should be removed!!! I am going to close this PR for now

petdun2519 avatar May 25 '17 19:05 petdun2519