adyen-web icon indicating copy to clipboard operation
adyen-web copied to clipboard

[Accessibility] Payment methods should be radio options

Open gazjoy opened this issue 2 years ago • 8 comments

Describe the bug As part of WCAG 2.1 - 1.3.1: Info and Relationships the payment methods should give meaning of their relationship to each other. This is because they are separate buttons with no relationship. This is important as giving the methods a mutually exclusive relationship means a screen reader user will understand there are options for the method of payment. We only want to give users one option but also describe to the user that options are available. input type="radio" does this. At the moment the only way for screen reader users to understand options are available is to jump forward and backwards in the document. They could easily miss the fact that they could pay with PayPal or any other option.

To Reproduce Steps to reproduce the behavior:

  1. Go to payment step with screen reader
  2. Listen to description of payment step

Expected behavior Users should be able to understand they can use their credit card or another means. When navigated to by a screen reader I would expect to hear:

  • Pay by Credit card - radio button 1 of 2
  • Pay with PayPal - radio button 2 of 2

Screenshots image image image

Desktop (please complete the following information):

  • OS: macOS Monterey 12.5
  • Browser: Safari 15.6
  • Screen reader: VoiceOver

gazjoy avatar Aug 17 '22 11:08 gazjoy

Hey @gazjoy ,

Thanks for getting back to us with these accessibility issues. Can you also share what version of the SDK are you using during your tests?

ribeiroguilherme avatar Aug 18 '22 13:08 ribeiroguilherme

And, as mentioned in https://github.com/Adyen/adyen-web/issues/1691#issuecomment-1220451031, this is also something we expect to be reported on in our ADA / WCAG accessibility review

sponglord avatar Aug 19 '22 09:08 sponglord

@ribeiroguilherme

Hey @gazjoy ,

Thanks for getting back to us with these accessibility issues. Can you also share what version of the SDK are you using during your tests?

version is: "@adyen/adyen-web": "5.22.0" implementation is: drop-in

gazjoy avatar Aug 24 '22 15:08 gazjoy

A fix for this has been released in the newer version v5.30.0. Still not radio buttons, but we have plans on moving towards that in the next major.

m1aw avatar Dec 06 '22 14:12 m1aw

@m1aw Hi is there any update on when these will be made into radios? Thank you.

gazjoy avatar Sep 29 '23 09:09 gazjoy

Hey @gazjoy yeah. We are going forward with this in v6. We do not have a release date yet, but I we are thinking in the next 1-2 months.

m1aw avatar Sep 29 '23 15:09 m1aw

Hi @m1aw Do you have any release date for this?

pedrogarmin avatar Dec 07 '23 12:12 pedrogarmin

We are now targeting the first few months next year, tho this is a concrete date.

One question, does the current solution not solve the problem? Because the list is correctly marked with the appropriate role.

m1aw avatar Dec 08 '23 10:12 m1aw