Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slide Option Not Working #1517

Closed
leggomuhgreggo opened this issue Jul 8, 2015 · 8 comments
Closed

Slide Option Not Working #1517

leggomuhgreggo opened this issue Jul 8, 2015 · 8 comments

Comments

@leggomuhgreggo
Copy link
Collaborator

Looks like any direct descendant of the slick is considered a slide, even when a jquery string is specified for the slide option.

Here's a pen demonstrating the issue.

Might be related to #1505

Im guessing broke when the slide option changed to defaulting to child elements

Thanks as always to you guys for all your efforts in making such an awesome carousel.

@nominalaeon
Copy link
Contributor

Who put that footer in the slider!?

I've always assumed that slick'ing all descendants was just how it worked. @simeydotme or @kenwheeler, is this supposed to be an option, like a user can send in a selector (array of selectors?) as an argument and have them be ignored? The concept is interesting, I'd like to look into it but I wanted to know if this is pre-existing and borked or if it would be a new feature?

@leggomuhgreggo
Copy link
Collaborator Author

@nominalaeon I totally agree it's a silly use-case. I just noticed it when I was working with some legacy markup and thought I'd alert the authorities #ifyouseesomethingsaysomething ;)

@simeydotme
Copy link
Collaborator

I think it's related to my PR: #1357 ... I'll be rebasing an merging all my PRs today, so I'd love it if you could test once I'm done, @leggomuhgreggo and
@nominalaeon 😄 xx

simeydotme added a commit to simeydotme/slick that referenced this issue Jul 11, 2015
Merge branches:
  - bugfix-327
  - enhancement-1244
  - bugfix-1353

Also added in some aria-attributes based on the recent merged branch kenwheeler#1467
by @msrafi :)

fixes kenwheeler#327, kenwheeler#1244, kenwheeler#1353, kenwheeler#1517, kenwheeler#907
@simeydotme
Copy link
Collaborator

Can you have a quick test with the master-branch slick.js file? :)

@leggomuhgreggo
Copy link
Collaborator Author

The slide option is working great! Thanks @simeydotme.

One thing I noticed is the slide gets an outline now, because of default user agent styles for the new tabindex attribute. Easy enough to add outline: 0 on .slide but I wanted to give you a heads up.

Here's a related doc

Edit: Clarity

@simeydotme
Copy link
Collaborator

Ah, that's from another dude's PR... #1467 -- is it possible you can give him a heads-up with the before/after screenshots? (i know its asking a lot) eek.

@simeydotme
Copy link
Collaborator

also: thanks for testing!! xxx

@leggomuhgreggo
Copy link
Collaborator Author

@simeydotme Happy to help!

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

No branches or pull requests

3 participants