Fancy Product Designer Multistep Product Configurator
How are you showing the colour swatches?
Found the file to edit - /inc/class-frontend-product.php - line 239 (plugin version 1.1.3) . Not ideal to edit the core plugin files, but it works. Hope to see this accessibility enhancement added in a future release. The javascript to make the variations clickable via keyboard return key is:
jQuery(document).on('keyup', '.mspc-variation',function(e){
if(e.which==13 || e.which==32)
$(this).click()
});
Brian Yerkes
For keyboard users, there's no way for them to tab into the accordion (and probably tabs also) options in the mulitstep product configurator, and make their selection.
The variations need to have tabindex=0 added to them, and also some javascript to activate a click function. I have a custom solution working for these issues, but just need to figure out where in the mspc plugin to add tabindex=0. Any help would be appreciated, thanks.
1 person likes this idea