Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility (= keyboard only) limitation when creditcard form has display:none on page load #8

Open
mybooc opened this issue Nov 16, 2020 · 2 comments

Comments

@mybooc
Copy link

mybooc commented Nov 16, 2020

I bounced into a accessibility (= keyboard only) limitation if you have a checkout page with collapsible (display:none) elements.

Assume the page starts with some form elements. After that you have a payment selection, for example ideal and creditcard.

If the creditcard form is collapsed on page load, and after selecting creditcard you display it (using display:block) then you cannot 'tab' beyond the Card holder. Instead you go back to the first form element on the page.

Checking mollie.js it looks that this has to do with mollie.js function reindexFocussableElements which is typically run at page load.

Does this mean that you should mount the creditcard fields every time after selecting the creditcard form,
or is there another way?

@Marinolinderhof
Copy link
Member

Marinolinderhof commented Nov 17, 2020

@mybooc Interesting challenge. Yes, Mollie components looks at the tab flow and will push our elements in the tab sequence accordingly. This is because we use iframes so we need to do this. So currently I don't see an other solution as you proposed. I do acknowledge this is not ideal. I will try to think of a solution with the team.

If we release something you can use I will get back to you. If you have any further questions please feel free to reply. Thanks for your question/remark highly appreciated.

@cpuell
Copy link

cpuell commented Feb 13, 2022

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants