When an accessible-slick slider becomes 'unslicked' (via the responsive settings or via jQuery), the role and aria-label that are appended upon 'slicking' persist. This makes for excess attributes that a screen reader will read out when the carousel no longer exists. The role and aria-label should be removed upon destroying the slider.
When an accessible-slick slider becomes 'unslicked' (via the responsive settings or via jQuery), the
role
andaria-label
that are appended upon 'slicking' persist. This makes for excess attributes that a screen reader will read out when the carousel no longer exists. Therole
andaria-label
should be removed upon destroying the slider.Minimal demo showing persisting attributes: https://codepen.io/SirDaev/pen/KKrdoPz
Before (when carousel is initialized):
After (when carousel is destroyed via unslick):