Skip to content

Stop default "1 of 5" etc. aria-label being added for slide elements #1379

@emattias

Description

@emattias

Checks

Version

v4.0.7

Description

The mac VoiceOver screen reader reads the less useful "1 of 5" aria label instead of the actual text content of the slide. Right now I did:

    this.splide.on('mounted', () => {
      this.splide.Components.Slides.forEach((slide) => {
        // remove aria-label so that the actual content is used instead of splides default "1 of 5" etc.
        slide.slide.removeAttribute('aria-label');
      });
    });

to remove aria-label attribute. It would be nice if there was an option to make splide not add them. Or maybe dont add them by default and have an option to have splide add them?

Reproduction Link

No response

Steps to Reproduce

  1. make a splide slideshow with defaults options
  2. notice how every slide element has the aria-label.

Expected Behaviour

To have a way to make splide not add aria-label attributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions