material icon indicating copy to clipboard operation
material copied to clipboard

tooltip: don't work on buttons in a md-fab-toolbar

Open Alexandre-io opened this issue 11 years ago • 18 comments

All tooltips are opened on the same location when mouse is over the fab-toolbar. Example: http://codepen.io/anon/pen/pjrLog

Alexandre-io avatar Oct 12 '15 21:10 Alexandre-io

  • If the toolbar icons have tooltips then tip shows even if the toolbar is closed - http://codepen.io/team/AngularMaterial/pen/QjxQGW

ThomasBurleson avatar Oct 30 '15 21:10 ThomasBurleson

Duplicate/variation of #4445

SanderElias avatar Nov 04 '15 13:11 SanderElias

@SanderElias the issue with the fab-speed-dial is solved but not with fab-toolbar -> http://codepen.io/ishankhare07/pen/dMpjXP?editors=1010 the position issue has still not fixed also i'd like to mention that using ng-if only affects the visibility, but DOES NOT fix the position

ishankhare07 avatar Mar 14 '16 09:03 ishankhare07

Is there a workaround for this?

nicooga avatar Jun 10 '16 02:06 nicooga

@ishankhare07 @nicooga You are correct, this was not fixed with the speed dial fixes. Re-opening and assigning to myself.

topherfangio avatar Jun 10 '16 14:06 topherfangio

+1

rahulvc01 avatar Jul 01 '16 15:07 rahulvc01

+1

harvellm avatar Jul 27 '16 16:07 harvellm

+1

adibas03 avatar Aug 23 '16 12:08 adibas03

+1

leandroruel avatar Aug 30 '16 18:08 leandroruel

+1

Volodymyr-Mishyn avatar Sep 07 '16 17:09 Volodymyr-Mishyn

+1

charlieargue avatar Sep 09 '16 00:09 charlieargue

+1 doesn't work on iOS both Chrome and Safari

Gisonrg avatar Sep 13 '16 13:09 Gisonrg

+1

WanManolo avatar Oct 24 '16 14:10 WanManolo

+1

ryanzola avatar Jan 31 '17 16:01 ryanzola

Yeah would be pretty nice to see this fixed. My toolbar is very 'wordy' and would be great to use icons+tooltips instead.

patoncrispy avatar Mar 01 '17 17:03 patoncrispy

+1

One simple (but ugly) workaround is to just use the 'title' attribute on <md-button> instead of using md-tooltip

johnrix avatar Apr 05 '17 22:04 johnrix

I have a way to fix it. But it is not perfect solution. After checking the Angular-Material's code I found that the tooltip gets initialised based on parent's pointer-events css properties, which makes sure the parent has pointer events and not set to none.

I was having the same problem, So I fixed it by adding pointer events to the menu's icon and removing it after the page has loaded. Codepen Link

Steps to fix:

  1. Add this css code into your css file (Make sure it override existing css)
md-fab-toolbar md-toolbar.pevents__initial {
      pointer-events: initial;
}
  1. Add pevents__initial class to the md-toolbar element, which is inside md-fab-toolbar:
    <md-toolbar class='pevents__initial'>
        <md-fab-actions class="md-toolbar-tools">
        </md-fab-actions>
    </md-toolbar>
  1. Add this javascript code to remove pevents__initial class from your above code :
setTimeout(function() {
   $('.pevents__initial').removeClass('pevents__initial');
}, 1000);

This is just a hack to make tooltip work inside fab toolbar. Need to read the official code more to find more better solution. But this works for me right now.

Rahul-Sagore avatar Sep 23 '17 21:09 Rahul-Sagore

I updated a similar CodePen from #7380 to AngularJS Material 1.2.2 and this issue is still there.

Screen Shot 2020-12-21 at 00 54 45

Splaktar avatar Dec 21 '20 06:12 Splaktar