UseGroupRole = false generate an error
See original GitHub issueHello 😃
I am using slick accessible but when I add option : useGroupRole: false
it generates a JS error.
Cannot read property 'replace' of undefined
Any solution? Here is my code 😃
$('.carousel-cards').slick({
dots: true,
arrows: true,
slidesToShow: 4,
infinite: true,
autoplay: true,
regionLabel: 'caroussel',
useGroupRole: false,
responsive: [{
breakpoint: 3000,
settings: {
slidesToShow: 3
}
},
{
breakpoint: 800,
settings: {
slidesToShow: 2
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 1
}
}
],
prevArrow: '<button class="previous-button is-control">' +
' <span class="fas fa-angle-left-white" aria-hidden="true"></span>' +
' <span class="sr-only">Diapositive précédente</span>' +
'</button>',
nextArrow: '<button class="next-button is-control">' +
' <span class="fas fa-angle-right-white" aria-hidden="true"></span>' +
' <span class="sr-only">Diapositive suivante</span>' +
'</button>',
});
Thanks a lot!
Issue Analytics
- State:
- Created 2 years ago
- Comments:13
Top Results From Across the Web
Support Accessible Slick [#3196529] | Drupal.org
By default, accessible-slick automatically inserts the pause/play button if autoplay is true and useAutoplayToggleButton is not false. If we ...
Read more >accessible-slick - the last (accessible) carousel you'll ever need
Setting this to false without providing an alternative control would likely violate WCAG 2.2.2, so be careful! useGroupRole, Type: boolean, Default: true ......
Read more >Exporting data... - MSRB
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=15454&op=do_nojs&op=do StatusText: OK ResponseText: window ...
Read more >Release Notes | Ext JS 6.0.0 - Sencha Documentation
Date not setting initial value; EXTJS-19271 Tag field with multiSelect: false throws console error; EXTJS-19274 ComboBox collapsing as typed characters ...
Read more >dcos-deploy - PyPI
You should separate your stack into groups and create a dcos.yml for each of ... dcos-deploy using the -e option (e.g. -e var1=foo)...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @damnsamn @jasonwebb has merged the fix on master. You should be able to get the updated code and fix your issue but you will not able to use the library with NPM as the last version has not been published on it.
I managed to make it works on my project by minifing the code from the new version.
The only last problem is that aria-labels injected by the new version show as undefined in the markeup. You can use onInit Event to destroy all aria-label by looping on all slides. cc @Accessible360
Issue closed as fixed on master, will be in the next minor release. Separate issue created for “aria-labels injected by the new version show as undefined in the markup” for investigation. https://github.com/Accessible360/accessible-slick/issues/66