md-fab-speed-dial: md-fab-actions intercepts pointer events when hidden
The height of the md-fab-actions container within an md-fab-speed-dial is non-zero even when hidden. As a result, it is intercepting pointer events. I'm not sure what the best approach is, but the following CSS fixed things for me:
md-fab-speed-dial md-fab-actions[aria-hidden] {
height: 0;
}
What version are you using? This was fixed recently by using the CSS pointer-events: none in the component's CSS.
This is still an an issue as of 0.11.4.
Can you provide a Codepen?
Your height CSS solution only works when using the "up" direction I'm afraid, that's why I opted for the pointer events.
I figured out the problem. I had the md-fab-speed-dial wrapped in a div which was inheriting the dimensions of the md-fab-speed-dial and blocking mouse events. Everything works as intended if I remove the wrapping tag, or apply pointer-events: none to it.
Thanks for the help!
Glad you got it working, and sorry for the confusion! I'll add some info to the docs about how that works :smile:
Are there any restrictions on where to use md-fab-speed-dial? I'm trying to add it inside md-card-header and I am experiencing the same issue: the md-fab-actions, although hidden, has a large height assigned to it, which screws up my header layout. I'm using 1.0.6.
@amergin There aren't any specific restrictions, but because the component uses Flexbox internally, putting it inside a smaller item would definitely cause some issues (like you've noticed).
If you can make the elements siblings and use absolute or relative positioning for the FAB, that tends to make it easier.