Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

md-fab-speed-dial with fab action buttons hidden, get in front of other elements on the page #5021

Closed
fjnogueira opened this issue Oct 5, 2015 · 6 comments

Comments

@fjnogueira
Copy link

delete_button_does_no_work_below_fab_shadow
when include a fab speed dial, it obstructs access to elements (when hidden), a possible hack might be changing the z-index of the hidden fab action buttons when hidden

@topherfangio
Copy link
Contributor

Duplicate of #4259. Should be closed when #4847 is merged.

@auty
Copy link

auty commented Oct 16, 2015

@topherfangio I'm still encountering this issue using v0.11.4. @fjnogueira Have you been able to confirm the fix using v0.11.4?

@topherfangio
Copy link
Contributor

@auty Can you provide a Codepen? Also, what browser are you using?

@auty
Copy link

auty commented Oct 16, 2015

@topherfangio Here's the Codepen http://codepen.io/auty/pen/Vvrarm/. It appears the placement of the id attribute is causing the issue. Having "id='FAB'" in the div causes the issue seen above. Moving "id='FAB'" to the element resolves the issue.

@topherfangio
Copy link
Contributor

@auty Ah, indeed. The speed dial achieves the proper effect using the CSS property pointer-events: none. So, if you wrap it in another <div>, you'll need to add it there as well.

That said, the FAB buttons have a md-fab-bottom-right class that you can apply which will do the positioning you want without the extra wrapper. You just need to make sure it is a sibling to the scrollable content, and whatever wraps both of those has to have position: relative.

Here is an example of what I mean: http://codepen.io/topherfangio/pen/gaXxva

@auty
Copy link

auty commented Oct 17, 2015

@topherfangio Thanks! I really appreciate the thorough explanation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants