Hi,
I’ve replied in the other post about tabindex but not this one.
See what I wrote here: https://www.ads-software.com/support/topic/tabindex-on-validation-errors?replies=3
I’m interesting in hearing your perspective on tabindex and why it has to go?
A few versions back I added a filter to remove the tabindex=-1, but I have not been convinced that it’s a good idea. All my testing and experience using AT to date has led me to see only benefits from tabindex=-1.
From the FAQS page …
How do I disable the tabindex on the validation message
I DO NOT recommend removing the tabindex.
After considered research I am of the belief that tabindex with a value of =-1 is perfectly fine, and infact quite helpful in making critical messages such as a validation message appear immidately for screen reader users.
With that said, if you want to disable it you can add this code to your theme’s functions.php file, below the starting <?php line.
add_action('itsg_gf_wcag_disable_tabindex', function () {
return true;
});