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

Pull Release v1.8.0 #1

Merged
merged 102 commits into from
Oct 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
6dfe2ef
Remove attributes not needed from default prev/next arrow button markup
cielt Jan 27, 2016
c780461
Remove attributes not needed from slick dot button markup
cielt Jan 27, 2016
0c5e8cf
edit / add key a11y attributes of slick slides
cielt Jan 28, 2016
f7904db
edit a11y attributes of slick dots, treating the carousel as an imple…
cielt Jan 28, 2016
a9c9b35
Merge remote-tracking branch 'upstream/master'
cielt Jan 29, 2016
787dc65
update attributes of slick dots button elements in the context of acc…
cielt Jan 29, 2016
0b98418
introduce aria-selected; update a11y attributes of current slide cont…
cielt Jan 29, 2016
1ebc88f
merging
cielt Jan 29, 2016
1da9503
Merge remote-tracking branch 'upstream/master'
cielt Feb 3, 2016
7cfffd0
Merge remote-tracking branch 'upstream/master'
cielt Feb 10, 2016
645c6a3
adjust slick slide & slick dot aria attribute indices
cielt Feb 10, 2016
8dff2aa
correct slick dots total for aria-label text to nearest containing wh…
cielt Feb 11, 2016
3b4fb45
where a11y true, on slide change set focus to current slide
cielt Feb 11, 2016
0f11b97
add arrow key handler to slick dots where a11y true
cielt Feb 11, 2016
3e11f5b
sync with upstream
cielt Feb 25, 2016
411f5ef
Merge remote-tracking branch 'upstream/master'
cielt Mar 15, 2016
65b2b61
Merge remote-tracking branch 'upstream/master'
cielt Apr 16, 2016
0f521c7
Merge remote-tracking branch 'upstream/master'
cielt May 23, 2016
454010e
edit postSlide behavior such that, instead of setting focus to curren…
cielt Jun 15, 2016
f40ed03
make proper jQuery object before chaining
cielt Jun 27, 2016
38a41da
[fix] https://github.com/kenwheeler/slick/issues/1252
marcelombc Sep 20, 2016
c363990
[fix] Small issue when carousel is vertical.
marcelombc Sep 21, 2016
19cfa93
Center active slide in infinite vertical center mode
illarionvk Nov 11, 2016
961b623
fixed syntax related to [dir="rtl"]
LordPachelbel Jan 11, 2017
015add5
Fix for jQuery 3
eirslett Feb 6, 2017
88286ef
Solving kenwheeler/slick Issues #2821
flaviocysne Mar 29, 2017
b574b3d
Solving /kenwheeler/slick Issue #2821
flaviocysne Mar 29, 2017
dfe16e0
Solving /kenwheeler/slick Issue #2821
flaviocysne Mar 29, 2017
84b0bc1
Solving /kenwheeler/slick Issue #2821
flaviocysne Mar 29, 2017
5b812dc
Solving /kenwheeler/slick Issue #2821
flaviocysne Mar 29, 2017
bfc1f94
1937: Removed aria live attribute
JordanDDisch Apr 14, 2017
cab526e
Merge pull request #2521 from marcelombc/master
Apr 19, 2017
bf03077
Merge pull request #2605 from illarionvk/vertical-center-mode-offset
Apr 20, 2017
c21002c
Merge pull request #2691 from BrownBoots/fix-broken-attribute-selector
Apr 20, 2017
0c3ddff
Merge pull request #2750 from eirslett/patch-1
Apr 20, 2017
fcc8d52
Update slick.js
Apr 20, 2017
492b822
Merge pull request #2852 from leggomuhgreggo/master
Apr 20, 2017
1801566
Revert "Center active slide in infinite vertical center mode"
Apr 20, 2017
78bd964
Merge pull request #2853 from kenwheeler/revert-2605-vertical-center-…
Apr 20, 2017
bded420
Took Out Described-By Attribute
bapplejax May 15, 2017
92c5439
Merge pull request #2822 from flaviocysne/master
Jun 2, 2017
9757103
Removed “aria-hidden” attributes from dots. Screenreader users should…
Jun 14, 2017
7cab60c
Removed redundant “aria-controls” attribute which was not linked with…
Jun 14, 2017
31662ad
Removed “aria-selected” attributes from dots which were not being upd…
Jun 14, 2017
156d34f
Moved ID to button rather than list item, as the button is the actual…
Jun 14, 2017
0075e79
Applying “aria-selected” attribute to the dot button which is linked …
Jun 14, 2017
409197c
Removed role=“listbox” attribute, as the carousel is not a list of it…
Jun 14, 2017
efd7749
Removed role=“tablist” attribute, as this is meaningless without asso…
Jun 14, 2017
015924f
Removed redundant attributes. Buttons inherently have a role of button.
Jun 14, 2017
dd8f926
Removed incorrect role=“presentation” attribute - element contains a …
Jun 14, 2017
3eff79b
Changed aria-selected to aria-pressed as this is a state for buttons.
Jun 14, 2017
a0bdb73
Fixing head
PaoloFalomo Jun 16, 2017
4f9f950
Merge pull request #2939 from PaoloFalomo/patch-1
Jun 16, 2017
16e4515
Merge pull request #2932 from keeganstreet/2639-corrected-aria-attrib…
Jun 16, 2017
d14fb3f
Merge branch 'master' into bapplejax-patch-1
Jun 16, 2017
0dea4d4
Merge pull request #2893 from bapplejax/bapplejax-patch-1
Jun 16, 2017
d127809
Merge pull request #2843 from Sonesta/master
Jun 16, 2017
b84a4c2
refs #1207 : Solve the #1207 issues about white spaces when using var…
Jun 16, 2017
98631b2
sync forked branch with upstream/master
cielt Jun 16, 2017
d3b9557
added type=button back and removed unnecessary tabindex=0
Jun 16, 2017
3ab76ec
Merge pull request #2942 from leggomuhgreggo/a11y-buttons
Jun 17, 2017
0d7ab43
update accessible slick behavior
cielt Jun 19, 2017
ef8c742
Aligns slides in the center if the number of slides is less than slid…
corvus-007 Jun 30, 2017
bd884b7
conditional @font-face hack for slick-theme.less
vanilla-thunder Jul 3, 2017
6cab829
Merge remote-tracking branch 'upstream/master'
cielt Jul 7, 2017
c74e4f3
after slide change in accessible slick, set focus to current slide [r…
cielt Jul 7, 2017
66fca9c
set up slides with role=tabpanel, etc. only if slick instance has dot…
cielt Jul 7, 2017
a4ee0bf
allow slick instance to be focussed if .slick-arrow buttons receive f…
cielt Jul 8, 2017
8e490aa
enable arrow key controls while prev/next buttons have focus
cielt Jul 8, 2017
ada9367
update option description in README
cielt Jul 9, 2017
b0622cc
Merge pull request #2119 from cielt/master
Jul 10, 2017
60ebe86
Removed Aria-pressed label for html validation reasons
tbirdsall Jul 11, 2017
be0d17c
Fixes bug in responsive rows
amapparat Jul 25, 2017
34042b4
Merge pull request #2981 from tbirdsall/master
Jul 27, 2017
40cc0d4
Merge pull request #2969 from vanilla-thunder/patch-1
Jul 27, 2017
fda50ab
Merge pull request #2966 from corvus-007/master
Jul 27, 2017
ce2d75a
Merge pull request #2946 from nicolaspernot/t-1207
Jul 29, 2017
c8c5c67
fix vertical+centerMode issues
ViliamKopecky Jul 29, 2017
77101f1
1.7.1
Jul 30, 2017
1b45441
Merge pull request #3012 from ViliamKopecky/master
Jul 30, 2017
0577bca
updated cdn links
Aug 1, 2017
c83dfa4
changed jquery from dependency to peerDependency
Aug 2, 2017
a3cefec
Fix JavaScript Error when enabling arrows by breakpoint
Aug 3, 2017
038f84e
Merge pull request #3027 from Schleuse/master
Aug 4, 2017
729dcd4
added option to enable focus on slideChange
Aug 4, 2017
da4bdcb
updated readme
Aug 4, 2017
8ccd846
Merge pull request #3032 from leggomuhgreggo/focusOnChange
Aug 4, 2017
b3eaa61
Not to scroll when infinite scrolling isn't on
Munawwar Aug 7, 2017
597d942
Update - added focusOnSelect
markpesantes Aug 22, 2017
5a3c6fb
Show dots only when needed
cbieser Aug 28, 2017
0c3bcfb
Changed the logic for adding aria describedby attribute
tbirdsall Sep 5, 2017
f9a8733
1.8.0
Sep 12, 2017
4909f26
Merge pull request #3097 from tbirdsall/wcag_num_slides_fix
Sep 12, 2017
6cbbe4c
Merge pull request #3080 from cbieser/patch-1
Sep 12, 2017
91d5038
fixed readme
Sep 12, 2017
86ed071
Merge pull request #3037 from Munawwar/patch-2
Sep 12, 2017
d8e958a
Merge pull request #3068 from MarkimusMaximus/patch-1
Sep 12, 2017
34612b4
Merge pull request #3001 from amapparat/patch-1
Sep 12, 2017
eb67d9e
when focusOnChange is false -> remove attr tabindex
alexandrubotez Sep 14, 2017
dcdc97c
Merge pull request #3109 from alexandrubotez/tabindex
Sep 15, 2017
0f40c9d
1.8.1
kenwheeler Oct 3, 2017
ee7d37f
versions
kenwheeler Oct 3, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,21 @@ to serve the files as close, and fast as possible to your users:
- https://cdnjs.com/libraries/slick-carousel
- https://www.jsdelivr.com/projects/jquery.slick

#####Example using jsDelivr
##### Example using jsDelivr

Just add a link to the css file in your `<head>`:

```html
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css"/>
<!-- Add the slick-theme.css if you want default styling -->
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick-theme.css"/>
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.css"/>
<!-- Add the slick-theme.css if you want default styling -->
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick-theme.css"/>
```

Then, before your closing ```<body>``` tag add:

```html
<script type="text/javascript" src="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.min.js"></script>
```

#### Package Managers
Expand Down Expand Up @@ -67,8 +69,12 @@ Example:

Option | Type | Default | Description
------ | ---- | ------- | -----------
accessibility | boolean | true | Enables tabbing and arrow key navigation
accessibility | boolean | true | Enables tabbing and arrow key navigation. Unless `autoplay: true`, sets browser focus to current slide (or first of current slide set, if multiple `slidesToShow`) after slide change. For full a11y compliance enable focusOnChange in addition to this.
adaptiveHeight | boolean | false | Adapts slider height to the current slide
appendArrows | string | $(element) | Change where the navigation arrows are attached (Selector, htmlString, Array, Element, jQuery object)
appendDots | string | $(element) | Change where the navigation dots are attached (Selector, htmlString, Array, Element, jQuery object)
arrows | boolean | true | Enable Next/Prev arrows
asNavFor | string | $(element) | Enables syncing of multiple sliders
autoplay | boolean | false | Enables auto play of slides
autoplaySpeed | int | 3000 | Auto play change interval
centerMode | boolean | false | Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts.
Expand All @@ -81,25 +87,25 @@ draggable | boolean | true | Enables desktop dragging
easing | string | 'linear' | animate() fallback easing
edgeFriction | integer | 0.15 | Resistance when swiping edges of non-infinite carousels
fade | boolean | false | Enables fade
arrows | boolean | true | Enable Next/Prev arrows
appendArrows | string | $(element) | Change where the navigation arrows are attached (Selector, htmlString, Array, Element, jQuery object)
appendDots | string | $(element) | Change where the navigation dots are attached (Selector, htmlString, Array, Element, jQuery object)
mobileFirst | boolean | false | Responsive settings use mobile first calculation
prevArrow | string (html \| jQuery selector) \| object (DOM node \| jQuery object) | `<button type="button" class="slick-prev">Previous</button>` | Allows you to select a node or customize the HTML for the "Previous" arrow.
nextArrow | string (html \| jQuery selector) \| object (DOM node \| jQuery object) | `<button type="button" class="slick-next">Next</button>` | Allows you to select a node or customize the HTML for the "Next" arrow.
focusOnSelect | boolean | false | Enable focus on selected element (click)
focusOnChange | boolean | false | Puts focus on slide after change
infinite | boolean | true | Infinite looping
initialSlide | integer | 0 | Slide to start on
lazyLoad | string | 'ondemand' | Accepts 'ondemand' or 'progressive' for lazy load technique. 'ondemand' will load the image as soon as you slide to it, 'progressive' loads one image after the other when the page loads.
mobileFirst | boolean | false | Responsive settings use mobile first calculation
nextArrow | string (html \| jQuery selector) \| object (DOM node \| jQuery object) | `<button type="button" class="slick-next">Next</button>` | Allows you to select a node or customize the HTML for the "Next" arrow.
pauseOnDotsHover | boolean | false | Pauses autoplay when a dot is hovered
pauseOnFocus | boolean | true | Pauses autoplay when slider is focussed
pauseOnHover | boolean | true | Pauses autoplay on hover
pauseOnDotsHover | boolean | false | Pauses autoplay when a dot is hovered
prevArrow | string (html \| jQuery selector) \| object (DOM node \| jQuery object) | `<button type="button" class="slick-prev">Previous</button>` | Allows you to select a node or customize the HTML for the "Previous" arrow.
respondTo | string | 'window' | Width that responsive object responds to. Can be 'window', 'slider' or 'min' (the smaller of the two).
responsive | array | null | Array of objects [containing breakpoints and settings objects (see example)](#responsive-option-example). Enables settings at given `breakpoint`. Set `settings` to "unslick" instead of an object to disable slick at a given breakpoint.
rows | int | 1 | Setting this to more than 1 initializes grid mode. Use slidesPerRow to set how many slides should be in each row.
rtl | boolean | false | Change the slider's direction to become right-to-left
slide | string | '' | Slide element query
slidesPerRow | int | 1 | With grid mode initialized via the rows option, this sets how many slides are in each grid row.
slidesToShow | int | 1 | # of slides to show at a time
slidesToScroll | int | 1 | # of slides to scroll at a time
slidesToShow | int | 1 | # of slides to show at a time
speed | int | 300 | Transition speed
swipe | boolean | true | Enables touch swipe
swipeToSlide | boolean | false | Swipe to slide irrespective of slidesToScroll
Expand All @@ -110,7 +116,6 @@ useTransform | boolean | true | Enable/Disable CSS Transforms
variableWidth | boolean | false | Disables automatic slide width calculation
vertical | boolean | false | Vertical slide direction
verticalSwiping | boolean | false | Changes swipe direction to vertical
rtl | boolean | false | Change the slider's direction to become right-to-left
waitForAnimate | boolean | true | Ignores requests to advance the slide while animating
zIndex | number | 1000 | Set the zIndex values for slides, useful for IE9 and lower

Expand Down Expand Up @@ -280,7 +285,7 @@ jQuery 1.7

#### License

Copyright (c) 2014 Ken Wheeler
Copyright (c) 2017 Ken Wheeler

Licensed under the MIT license.

Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "slick",
"repo": "kenwheeler/slick",
"description": "the last carousel you'll ever need",
"version": "1.6.0",
"version": "1.8.1",
"keywords": ["ui", "jquery", "carousel", "responsive", "slider"],
"dependencies": {
"component/jquery": "*"
Expand Down
218 changes: 214 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,190 @@

.slick-prev:before,
.slick-next:before {
color: black;
color: black;
}


.slick-slide {
transition: all ease-in-out .3s;
opacity: .2;
}

.slick-active {
opacity: .5;
}

.slick-current {
opacity: 1;
}
</style>
</head>
<body>

<section class="vertical-center-4 slider">
<div>
<img src="http://placehold.it/350x100?text=1">
</div>
<div>
<img src="http://placehold.it/350x100?text=2">
</div>
<div>
<img src="http://placehold.it/350x100?text=3">
</div>
<div>
<img src="http://placehold.it/350x100?text=4">
</div>
<div>
<img src="http://placehold.it/350x100?text=5">
</div>
<div>
<img src="http://placehold.it/350x100?text=6">
</div>
<div>
<img src="http://placehold.it/350x100?text=7">
</div>
<div>
<img src="http://placehold.it/350x100?text=8">
</div>
<div>
<img src="http://placehold.it/350x100?text=9">
</div>
<div>
<img src="http://placehold.it/350x100?text=10">
</div>
</section>

<section class="vertical-center-3 slider">
<div>
<img src="http://placehold.it/350x100?text=1">
</div>
<div>
<img src="http://placehold.it/350x100?text=2">
</div>
<div>
<img src="http://placehold.it/350x100?text=3">
</div>
<div>
<img src="http://placehold.it/350x100?text=4">
</div>
<div>
<img src="http://placehold.it/350x100?text=5">
</div>
<div>
<img src="http://placehold.it/350x100?text=6">
</div>
<div>
<img src="http://placehold.it/350x100?text=7">
</div>
<div>
<img src="http://placehold.it/350x100?text=8">
</div>
<div>
<img src="http://placehold.it/350x100?text=9">
</div>
<div>
<img src="http://placehold.it/350x100?text=10">
</div>
</section>

<section class="vertical-center-2 slider">
<div>
<img src="http://placehold.it/350x100?text=1">
</div>
<div>
<img src="http://placehold.it/350x100?text=2">
</div>
<div>
<img src="http://placehold.it/350x100?text=3">
</div>
<div>
<img src="http://placehold.it/350x100?text=4">
</div>
<div>
<img src="http://placehold.it/350x100?text=5">
</div>
<div>
<img src="http://placehold.it/350x100?text=6">
</div>
<div>
<img src="http://placehold.it/350x100?text=7">
</div>
<div>
<img src="http://placehold.it/350x100?text=8">
</div>
<div>
<img src="http://placehold.it/350x100?text=9">
</div>
<div>
<img src="http://placehold.it/350x100?text=10">
</div>
</section>

<section class="vertical-center slider">
<div>
<img src="http://placehold.it/350x100?text=1">
</div>
<div>
<img src="http://placehold.it/350x100?text=2">
</div>
<div>
<img src="http://placehold.it/350x100?text=3">
</div>
<div>
<img src="http://placehold.it/350x100?text=4">
</div>
<div>
<img src="http://placehold.it/350x100?text=5">
</div>
<div>
<img src="http://placehold.it/350x100?text=6">
</div>
<div>
<img src="http://placehold.it/350x100?text=7">
</div>
<div>
<img src="http://placehold.it/350x100?text=8">
</div>
<div>
<img src="http://placehold.it/350x100?text=9">
</div>
<div>
<img src="http://placehold.it/350x100?text=10">
</div>
</section>

<section class="vertical slider">
<div>
<img src="http://placehold.it/350x100?text=1">
</div>
<div>
<img src="http://placehold.it/350x100?text=2">
</div>
<div>
<img src="http://placehold.it/350x100?text=3">
</div>
<div>
<img src="http://placehold.it/350x100?text=4">
</div>
<div>
<img src="http://placehold.it/350x100?text=5">
</div>
<div>
<img src="http://placehold.it/350x100?text=6">
</div>
<div>
<img src="http://placehold.it/350x100?text=7">
</div>
<div>
<img src="http://placehold.it/350x100?text=8">
</div>
<div>
<img src="http://placehold.it/350x100?text=9">
</div>
<div>
<img src="http://placehold.it/350x100?text=10">
</div>
</section>
<section class="regular slider">
<div>
<img src="http://placehold.it/350x300?text=1">
Expand Down Expand Up @@ -134,6 +312,38 @@
<script src="./slick/slick.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).on('ready', function() {
$(".vertical-center-4").slick({
dots: true,
vertical: true,
centerMode: true,
slidesToShow: 4,
slidesToScroll: 2
});
$(".vertical-center-3").slick({
dots: true,
vertical: true,
centerMode: true,
slidesToShow: 3,
slidesToScroll: 3
});
$(".vertical-center-2").slick({
dots: true,
vertical: true,
centerMode: true,
slidesToShow: 2,
slidesToScroll: 2
});
$(".vertical-center").slick({
dots: true,
vertical: true,
centerMode: true,
});
$(".vertical").slick({
dots: true,
vertical: true,
slidesToShow: 3,
slidesToScroll: 3
});
$(".regular").slick({
dots: true,
infinite: true,
Expand All @@ -144,7 +354,7 @@
dots: true,
infinite: true,
centerMode: true,
slidesToShow: 3,
slidesToShow: 5,
slidesToScroll: 3
});
$(".variable").slick({
Expand All @@ -157,7 +367,7 @@
infinite: true
});
});
</script>
</script>

</body>
</html>
</html>
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slick-carousel",
"version": "1.6.0",
"version": "1.8.1",
"description": "the last carousel you'll ever need",
"main": "slick/slick.js",
"repository": {
Expand Down Expand Up @@ -44,7 +44,7 @@
"bugs": {
"url": "https://github.com/kenwheeler/slick/issues"
},
"dependencies": {
"jquery": ">=1.7.2"
"peerDependencies": {
"jquery": ">=1.8.0"
}
}
2 changes: 1 addition & 1 deletion slick.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"touch",
"mobile"
],
"version": "1.6.0",
"version": "1.8.1",
"author": {
"name": "Ken Wheeler",
"url": "http://kenwheeler.github.io"
Expand Down
Loading