Skip to content

Set ARIA-Label for the close button #617

Closed

Description

@davidklpk

Hi, love your package!

Is there an option to set the ARIA-label of the close-button if set on the Toaster? Currently, it has the ARIA-label aria-label="Close Button". For multilingual applications, it would be perfect to have the ability to customize this label based on the application's language. It would improve accessibility for non-English users, as screen readers would announce the close button in the given language.

Thanks again for your work!

Activity

  1. timmy471 commented on Apr 6, 2025

    @timmy471

    Hi @davidklpk have you checked out the closeButtonAriaLabeloption?

    See here

  2. davidklpk commented on Apr 7, 2025

    @davidklpk
    Author

    Hi, thanks for your reply.

    That's exactly what I was looking for! Unfortunately, I didn't find the closeButtonAriaLabel option in the deployed version of the documentation.

    But it is available here in the repo, for anyone interested in this topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions