foundation / foundation-sites

The most advanced responsive front-end framework in the world. Quickly create prototypes and production code for sites that work on any kind of device.
https://get.foundation
MIT License
29.64k stars 5.5k forks source link

Orbit Content Link doesn't work properly #490

Closed kaspar-allenbach closed 12 years ago

kaspar-allenbach commented 12 years ago

Hi.

I have a Orbit Slideshow with three content slides in whom the whole content is wrapped by an "a" Tag. So far so good. Orbit works the way it should but when clicking on a slide, it always activates the link on the bottom slide and not the one on top.

As far as I can see this is because only the top slide gets a z-index. If i ad z-indexes also for slide 2 and 3 manualy in firebug the whole thing works as expected.

So my question is how to append a z-index to every slide via the orbit.js ?

Thanks for any help.

kaspar-allenbach commented 12 years ago

I downloaded the newest git code for orbit and now the z-indexes are appended.

But this causes a new problem: the slides run trough witout a halt. Firebug console reports:

trigger(orbit.next) called incorrectly 133855...4269.js (Zeile 25) More info: Collection: [div#featured.orbit] 133855...4269.js (Zeile 25)

With the older code that doesn't happen? Anyone any idea?

mtmcfarl commented 12 years ago

You shouldn't have to add z-indexes on the slides. The plugin handles that for you by making the current slide a higher z-index than the others.

kaspar-allenbach commented 12 years ago

Well. it doesn't. However I use another slideshow plugin now. I think the foundation framework is awesome. But the orbit slideshow is a constant hassle. I won't use it anymore in future projects.