svelte-carousel icon indicating copy to clipboard operation
svelte-carousel copied to clipboard

Buttons do not have an accessible name

Open striderskynet opened this issue 2 years ago • 3 comments

When a button doesn't have an accessible name, screen readers announce it as "button", making it unusable for users who rely on screen readers.

striderskynet avatar Jul 22 '23 04:07 striderskynet

You can declare aria-labels by customizing your own buttons. https://vadimkorr.github.io/svelte-carousel/#slots-prev-next

tim-ming avatar Jul 23 '23 05:07 tim-ming

right... sorry didnt think of it...

On Sun, Jul 23, 2023 at 1:11 AM ming @.***> wrote:

You can declare aria-labels by customizing your own buttons. https://vadimkorr.github.io/svelte-carousel/#slots-prev-next

— Reply to this email directly, view it on GitHub https://github.com/vadimkorr/svelte-carousel/issues/143#issuecomment-1646747975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRGDZW5OFFG3ZKQOTB4LDXRSW7PANCNFSM6AAAAAA2TTD5JM . You are receiving this because you authored the thread.Message ID: @.***>

-- In four days from now, look at the west, i shall be there. Gandalf

striderskynet avatar Jul 23 '23 05:07 striderskynet

This solution works, but IMHO they should have a default aria-label so everyone benefits from it.

bfontaine avatar Aug 02 '23 17:08 bfontaine