-
Notifications
You must be signed in to change notification settings - Fork 244
WAI-ARIA / Keyboard support #46
Comments
Hi @pimboden For what exactly do you need keyboard support ? |
Hi @cristijora |
@pimboden Some parts should be possible to make with a bit of styling. I have to read a bit more about aria support. If you can provide any help, it would be great :) |
Well I would keep it simple...
I added ** where I would put some aria- tags.. let me know |
@pimboden This is pretty much done. You can check it on this example You should be able to navigate between steps with Tab and arrow keys. Pressing enter on one of the steps will try to navigate to the corresponding step and validate it before. I also added focus support for the buttons (prev, next, finish) This is not published on npm yet. Let me know if I missed something. |
Hello @cristijora . Looking good.. The only "problem" I see is the aria-labelledby, as far as I know It should have the Id of the Label or element that has its title . That's why in my sample I introduced Id's id="stepTilex" to the spans. Are you planing in some future extend this a bit more with aria-selected="true" aria-disabled="false" props on the tabs? and aria-hidden="true" in the tabpanels? I know I sound a bit greedy.. sorry. ;-) |
Thanks for the feedback. Regarding your first question, I will re-check it. When it comes to id's, I use the tab PS: It's not greedy since I'm not the most familiar with this accessibility part and if it's done, it should be done right so it's ok. |
Please let me know when you're done so I'll give it a try with the screen reader. |
@pimboden As a side question, I'm thinking of disabling the possibility to navigate to a not visited step.
Let me know if that's a big issue for you. |
Hello @cristijora . |
I've found an 'issue' that might be related, if not I can create a separate issue. The wizard navigation links have a css class that put a pointer cursor on it when hovered.
The reason I found this is because the pointer cursor is also being shown on the items that are not clickable. Therefore they shouldn't have this cursor. I saw that the So it might be better to add an This way your html is more valid, you don't need to explicitly change the cursor property AND users don't get the feeling the should be able to click on the nav items that are not active. |
Released 0.7.0 with keyboard support and a bugfix for the issue mentioned by @Donaldini |
Hello.
Is there any plans for adding keyboard and/ or WAI-ARIA support for this wizard?
Or is there a way I can already add them via some template I don't know yet?
The text was updated successfully, but these errors were encountered: