harm-less / angular-sticky

Pure javascript AngularJS directive to make elements stick when scrolling
http://harm-less.github.io/angular-sticky
83 stars 38 forks source link

#39 - make zIndex configurable #40

Closed dotKev closed 6 years ago

dotKev commented 6 years ago

Connected to #39

I'm sure there is a better way to do this, but here's a quick fix to allow a z-index attribute on the directive.

e.g.

<div class="dashboard-edit-buttons"
     hl-sticky
     z-index="997"
     use-placeholder="false"
     collection="sticky-content-edit-bar"
     offset-top="{{ view.navOffset }}"
     container="mobile-nav-content-wrapper">
dotKev commented 6 years ago

FYI, tests pass locally.

harm-less commented 6 years ago

Hey Kevin, Thanks for the pull-request. Before I can merge this, I also need some unit tests for this feature.

harm-less commented 6 years ago

Fixed due to #45 and released in 0.5.0, closing this PR