Skip to content

Role & ARIA-label persist on carousel after 'unslicking' #93

@SirDaev

Description

@SirDaev

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.

Minimal demo showing persisting attributes:
https://codepen.io/SirDaev/pen/KKrdoPz

Before (when carousel is initialized):
Screen Shot 2023-06-15 at 10 58 06 AM

After (when carousel is destroyed via unslick):
Screen Shot 2023-06-15 at 10 57 22 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions