Accessible360 / accessible-slick

the last (accessible) carousel you'll ever need.
https://accessible360.github.io/accessible-slick
MIT License
254 stars 45 forks source link

Support customized text for all aria-labels #86

Open recrit opened 1 year ago

recrit commented 1 year ago

The following represents the aria-labels used as of master 61b5322:

Issues

Generic Example:

customItemLabel: function (slider, i) {
    return 'Image ' + (i + 1) + ' of ' + slider.$slides.length;
}

Example with Drupal:

customItemLabel: function (slider, i) {
    return Drupal.t('Image @index of @total', {
      '@index': i + 1,
      '@total':  slider.$slides.length
    });
}
recrit commented 1 year ago

The opened PR #88 makes the following changes: List / Slider:

Item / Slide:

achemkhi commented 1 year ago

@recrit : when will it be released to fix the problem

recrit commented 1 year ago

@achemkhi The PR #88 is opened for the accessible-slick maintainers to review, so it is up to them when it is released.