components icon indicating copy to clipboard operation
components copied to clipboard

Tooltip is not shown in Firefox in some cases

Open chouclee opened this issue 9 years ago • 3 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Tooltip should show in Firefox

What is the current behavior?

In some cases*, tooltip is missing

<button md-icon-button>
  <md-icon [mdTooltip]="'Edit'">edit</md-icon>
</button>

What are the steps to reproduce?

http://plnkr.co/edit/T8rC8WLfaSHkjexNrot9?p=preview

What is the use-case or motivation for changing an existing behavior?

tooltip should have consistent behaviors across evergreen broswers

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

OS: Windows 7 & Mac OS Sierra Browser: Firefox only (55.0.3)

Is there anything else we should know?

chouclee avatar Sep 06 '17 19:09 chouclee

Unfortunately this is a browser issue with FF that we cannot work around. Buttons shield content from capturing hover events.

https://bugzilla.mozilla.org/show_bug.cgi?id=843003

To workaround this, do not put mdTooltip on content within the button. Instead, put the tooltip directly on the button.

<button md-icon-button [mdTooltip]="'Edit'">
  <md-icon>edit</md-icon>
</button>

andrewseguin avatar Sep 07 '17 18:09 andrewseguin

@andrewseguin Thanks for finding the root cause. The reason I put it within button is to show tooltip even when button is disabled. I can use extra <div></div> as wrapper.

chouclee avatar Sep 08 '17 17:09 chouclee

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.