ngSticky icon indicating copy to clipboard operation
ngSticky copied to clipboard

Z Index

Open solidsnake36 opened this issue 9 years ago • 5 comments

Is there a way to configure the z-index? I have a fly out menu which shows under the sticky.

solidsnake36 avatar Feb 29 '16 21:02 solidsnake36

IMO, you should use a custom class for the sticky (when it stuck) and set right z-index number for it to make it works with your menu.

tucq88 avatar Mar 03 '16 16:03 tucq88

@tucq88, inline styles override class based styles so thats not an option.

circlingthesun avatar Mar 08 '16 14:03 circlingthesun

Actually I was able to override using !important, thanks. On Mar 8, 2016 9:25 AM, "Rickert Mulder" [email protected] wrote:

@tucq88 https://github.com/tucq88, element level styles override class based styles so thats not an option.

— Reply to this email directly or view it on GitHub https://github.com/d-oliveros/ngSticky/issues/122#issuecomment-193802910 .

solidsnake36 avatar Mar 08 '16 14:03 solidsnake36

Right, I forgot about !important. I just forked the project and implemented a sticky-z-index attribute. I would a PR be worthwhile?

circlingthesun avatar Mar 08 '16 14:03 circlingthesun

@circlingthesun :+1: I'm not sure about the z-index PR, because it could be done by using a custom class via options so I think we should not set it as default :D IMO, the more flexibility, the better :smile:

tucq88 avatar Mar 08 '16 16:03 tucq88