Skip to content

v2.0.1

Latest

Choose a tag to compare

@ahmadalfy ahmadalfy released this 30 Jul 21:13
ad3198e

A small maintenance release featuring one RTL bug fix.

🐛 Bug fixes

  • Fixed RTL + variableWidth rendering as LTR. Slick's right-to-left layout depends on the [dir=rtl] .slick-slide CSS rule, but the rtl: true option only drove the JavaScript positioning. It never guaranteed that rule matched. As a result, pages that set direction via CSS (direction: rtl), a utility class, or a dir="rtl" attribute that wasn't an ancestor of the slider would render left-to-right, which was especially broken with variableWidth: true. Slick now applies dir="rtl" to its own slider element when rtl: true, so the option works on its own regardless of surrounding markup.

Full changelog: v2.0.0...v2.0.1