material icon indicating copy to clipboard operation
material copied to clipboard

fab-speed-dial: items are behind toolbar

Open holtjonathan opened this issue 9 years ago • 2 comments

Actual Behavior: FABSpeedial items are being put behind a seconardy toolbar that my page has. I would have expected these items to be displayed 'on top' of this toolbar.

CodePen (or steps to reproduce the issue): * https://codepen.io/anon/pen/gxBGbp?editors=1000 You will see the speedial items (1, 2, 3, 4, etc) are being put behind the secondary toolbar (marked as 'Secondary header')

AngularJS Versions: *

  • AngularJS Version: 1.5.5
  • AngularJS Material Version: 1.1.0

Please see the codepen (above) or you can simply reference this screenshot: fabspeeddial

holtjonathan avatar Aug 28 '17 14:08 holtjonathan

This is because the two toolbars have the same z-index. They will be placed into the stacking context in the order they appear in the html. Bumping your main toolbar up to z-index:3 will solve the problem.

https://codepen.io/mckenzielong/pen/prxVWb?editors=1000

mckenzielong avatar Aug 28 '17 19:08 mckenzielong

As McKenzie said, this is an issue with both toolbars having the same z-index. Updated CodePen for 1.1.22.

Splaktar avatar May 31 '20 02:05 Splaktar